Closed vrthra closed 1 year ago
@vrthra IndexedDB (even when using AsyncMirror) is still asynchronous across different frames (windows). You should instead use a cross-frame synchronous backend instead (e.g. LocalStorageFS) as the sync backend for AsyncMirror (instead of something like InMemory, which is isolated to a window).
I am trying to use BrowserFS with pyodide. My configuration is as follows
Next, within pyodide, I try this in one window.
This works in the same window
But not if I use a different window.
According to the AsyncMirror docs, both backends should be kept in sync. However, the write operation does not seem to be synced to IndexDB even after some time has passed.