Howdy, opening a second issue of the night - which I think is distinct from #4
Saw in #3 that fetch is supposed to work natively without --enable-js-runtime. Tried it on macOS ARM64 using perry-react and got a linker error instead:
useEffect(() => {
fetch("https://wttr.in/Chicago?format=3")
.then(res => res.text())
.then(text => setData(text))
}, [])
Undefined symbols for architecture arm64:
"_js_fetch_with_options", referenced from:
___closure_1 in react_test_src_main_tsx.o
ld: symbol(s) not found for architecture arm64
Error: Linking failed
Seems like _js_fetch_with_options isn't making it into the linked binary on macOS. Could be a perry-react specific issue since the native stdlib isn't getting pulled in the same way. macOS ARM64, built from source.