-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page state store caching, preloading, and memory management #204
Commits on Oct 10, 2022
-
feat: added eviction to the pss
This should fix any memory blowouts (not leaks, just the storage of every single page's state can get a bit heavy), which occasionally occurred in development.
Configuration menu - View commit details
-
Copy full SHA for 1c44ef1 - Browse repository at this point
Copy the full SHA 1c44ef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6815503 - Browse repository at this point
Copy the full SHA 6815503View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1fa672 - Browse repository at this point
Copy the full SHA f1fa672View commit details
Commits on Oct 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 81dd180 - Browse repository at this point
Copy the full SHA 81dd180View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3818b04 - Browse repository at this point
Copy the full SHA 3818b04View commit details
Commits on Oct 17, 2022
-
feat: prevented network requests for cached head/state
After a page is fetched as a subsequent load, it won't be fetched again until the PSS fills up! This doesn't work with initial loads, since the head is pre-interpolated (and I don't want to increase the bundle size by doubling it up in a variable; reading from the HTML is unreliable since JS will likely have already modified it).
Configuration menu - View commit details
-
Copy full SHA for e5ebebe - Browse repository at this point
Copy the full SHA e5ebebeView commit details
Commits on Oct 22, 2022
-
feat: added preloading infrastructure
This has involved making `RenderCtx` hold much more data in the browser, like the error pages and render context, though this should make routing much lighter.
Configuration menu - View commit details
-
Copy full SHA for 8e3762d - Browse repository at this point
Copy the full SHA 8e3762dView commit details -
fix: fixed longstanding clones in app route system
Apparently, it's perfectly valid to pass the Sycamore scope through to the Sycamore router, which means we an access everything we need from the render context! (I reckon there'll be a performance improvement to moving the render context into a dedicated system though, beyond Sycamore's context.)
Configuration menu - View commit details
-
Copy full SHA for 124fe85 - Browse repository at this point
Copy the full SHA 124fe85View commit details
Commits on Oct 23, 2022
-
chore: merged branch 'main' into feat-pss-improvements
This was needed for the website fixes to make the tests pass.
Configuration menu - View commit details
-
Copy full SHA for 0f3381b - Browse repository at this point
Copy the full SHA 0f3381bView commit details
Commits on Oct 26, 2022
-
refactor: removed unnecessary if clause in fetching example
I think this led to some confusion the other day, so it's clarified now. Just that we don't need `G::IS_BROWSER` if we're target-gating as well.
Configuration menu - View commit details
-
Copy full SHA for 8d180f4 - Browse repository at this point
Copy the full SHA 8d180f4View commit details -
feat: created user-facing preload system
This includes a new `core/preload` example.
Configuration menu - View commit details
-
Copy full SHA for 42bba47 - Browse repository at this point
Copy the full SHA 42bba47View commit details
Commits on Oct 28, 2022
-
chore: merged branch 'main' into feat-pss-improvements
This was for the #212 fix.
Configuration menu - View commit details
-
Copy full SHA for 6b5ad1a - Browse repository at this point
Copy the full SHA 6b5ad1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 227abe7 - Browse repository at this point
Copy the full SHA 227abe7View commit details -
chore: merged branch 'main' into feat-pss-improvements
This was for the #212 fix on `examples/.base/`.
Configuration menu - View commit details
-
Copy full SHA for db0c3c0 - Browse repository at this point
Copy the full SHA db0c3c0View commit details -
chore: merged branch 'main' into feat-pss-improvements
And this one was for the #212 fix on the testing script!
Configuration menu - View commit details
-
Copy full SHA for e1ae26a - Browse repository at this point
Copy the full SHA e1ae26aView commit details
Commits on Oct 29, 2022
-
chore: merged branch 'main' into feat-pss-improvements
This was for the CI fixes.
Configuration menu - View commit details
-
Copy full SHA for 0f466c4 - Browse repository at this point
Copy the full SHA 0f466c4View commit details -
feat: added initially loaded page caching
This is achieved through an extra `<meta>` delimiter that denotes the end of the `<head>`, which should be pretty reliable at getting what the user intended.
Configuration menu - View commit details
-
Copy full SHA for 2630ac1 - Browse repository at this point
Copy the full SHA 2630ac1View commit details -
feat: added feature to control initial page caching
Advanced `<head>` manipulations *could* in rare cases lead to bugs, so the user can turn this off if necessary, and it's documented in the FAQ section.
Configuration menu - View commit details
-
Copy full SHA for 981185e - Browse repository at this point
Copy the full SHA 981185eView commit details