-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: return updated layout data if child uses parent
#13076
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: b2880fa 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 |
parent
I don't know how I feel about changing this. If the parent load function does not have anything in it that makes it officially rerun, I don't think we should let it rerun indirectly via |
Should we try to pursue some form of this (passing the parent data from the client to the server) so that the parent data is consistent?
There could also be cases where it isn't a misuse. For example: an admin updates a user's settings, causing the parent load function to return new data when the parent data is reconstructed. This would cause the layout data to be stale while the child load uses fresh data. |
fixes #9355
This PR changes the server data to return the updated layout data from a layout node if a child load function uses
parent
. Previously, the child load function would receive the updated data fromparent
, but the layout node would still return the stale data.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.Edits