fairDataSociety / blossom

Browser Extension based on Fair Data Protocol
Apache License 2.0
5 stars 4 forks source link

fix: fix race condition (#79) #80

Closed tomicvladan closed 2 years ago

tomicvladan commented 2 years ago

When saving a value in the extension storage, it would be expected to first notify all listeners and then resolve the promise. But that's not the case. So this PR fixes that issue, by always loading state from the extension storage instead of relying on values in memory.

Closes #79