anvilistas / anvil-labs

MIT License
9 stars 3 forks source link

bg-sync initial idea #93

Closed s-cork closed 1 year ago

s-cork commented 1 year ago

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