I put something small in native-libraries
I need to hack window.anvilLabs.importFrom because anvil.js.import_from doesn't resolve nicely with relative imports
and in debug mode /_/theme/... doesn't work - this is probably an anvil bug to be fixed.
I also realise I can't do my clever - anvil.server.get_api_origin() inside a web-worker since it might be offline and that call goes to the server.
For another PR.
Needs a bit of clean up but seems to be working for me locally
I also didn't change the api for regesiter_sync
TODO
I put something small in native-libraries I need to hack
window.anvilLabs.importFrom
becauseanvil.js.import_from
doesn't resolve nicely with relative imports and in debug mode/_/theme/...
doesn't work - this is probably an anvil bug to be fixed.I also realise I can't do my clever -
anvil.server.get_api_origin()
inside a web-worker since it might be offline and that call goes to the server. For another PR.Needs a bit of clean up but seems to be working for me locally
I also didn't change the api for
regesiter_sync
TODO