breaking: deprecate invalidate/invalidateAll#16289
Merged
Merged
Conversation
…lidateAll` - Added a `refresh` method that works like `invalidate` but does not reset `page.state` - Added new `refresh` method (which also doesn't reset `page.state`) - Deprecated `invalidate(All)` in favor of `refresh(All)` (also on `goto`) - Removed the `includeLoadFunctions` option from `refreshAll` - it now always reruns `load` functions Closes #11783 Closes #13139
🦋 Changeset detectedLatest commit: 9851cce The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/9851cce2901cdfc261c932660b268aed4ec38378Open in |
6 tasks
refresh/refreshAll and deprecate invalidate/invalidateAllinvalidate/invalidateAll
This was
linked to
issues
Jul 10, 2026
teemingc
reviewed
Jul 10, 2026
teemingc
reviewed
Jul 10, 2026
teemingc
previously requested changes
Jul 10, 2026
Member
|
LGTM. Just a few changes needed like the snake case parameter in |
Rich-Harris
reviewed
Jul 10, 2026
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Rich-Harris
reviewed
Jul 10, 2026
Rich-Harris
reviewed
Jul 10, 2026
Rich-Harris
approved these changes
Jul 10, 2026
This was referenced Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
invalidateto not resetpage.state(we don't want to addrefreshfor this as we may want to introduce it in relation to queries and not for load functions)invalidateAllin favor ofrefreshAll(also ongoto)includeLoadFunctionsoption fromrefreshAll- it now always rerunsloadfunctionsCloses #11783 Closes #13139