anvilistas / anvil-labs

MIT License
8 stars 3 forks source link

sw: fix up errors from import mechanism being slow #136

Closed s-cork closed 1 year ago

s-cork commented 1 year ago

essentially if a sync event is triggered in python before the module is loaded, then bad things happen this pr prevents that the import mechansim was slowing us down we now don't clear the indexeddb cache to avoid stale modules we update the modules ahead of loading the service worker

this makes the todo service worker app much more robust

s-cork commented 1 year ago

merging as bug fix