Skip to content

Fix bfcache with persistent atom and map#39

Merged
ai merged 22 commits into
nanostores:mainfrom
GoldStrikeArch:fix-bfcache
Jul 13, 2023
Merged

Fix bfcache with persistent atom and map#39
ai merged 22 commits into
nanostores:mainfrom
GoldStrikeArch:fix-bfcache

Conversation

@GoldStrikeArch

Copy link
Copy Markdown
Contributor
  1. Fixed this issue Store values cached when navigating back (BFcache) #35 I simply added "sync" function and "pageshow" listener in "windowPersistentEvents" (I'm not sure if typing of "PersistentListener" should be updated because this would only be available in "windowPersistentEvents")
  2. Added playwright tests to bfcache.
  3. Added "demo" folder with simple vite app to test bf cache by hand if needed.
  4. Increased total size a bit (less than 50 bytes). This can probably be improved if needed.

Comment thread demo/bfcachetest/index.html Outdated
Comment thread demo/bfcachetest/index.js Outdated
Comment thread test/playwright/bfcache.spec.ts Outdated
Comment thread index.js Outdated
Comment thread index.js Outdated
Comment thread index.js
Comment thread demo/vite.config.js Outdated
Comment thread index.js Outdated
Comment thread package.json Outdated
@GoldStrikeArch GoldStrikeArch changed the title Fix bfcache with persistent atom and map and added "bf cache behaviour" playwright tests Fix bfcache with persistent atom and map Jul 11, 2023
Comment thread index.js Outdated
Comment thread index.js Outdated
Comment thread package.json
@ai ai merged commit 720c9b3 into nanostores:main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants