isomorphic-git / lightning-fs

A lean and fast 'fs' for the browser
MIT License
493 stars 49 forks source link

fix: fix required delay after init #122

Closed jcubic closed 1 year ago

jcubic commented 1 year ago

This fixes the forced delay to deactivate the FS.

The old code was using a side effect of calling stat('/'). After the fix it call deactivate directly which makes it so the code that uses lighthingFS don't need to put a 500ms delay after init.