-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[v2] Deprecate pathContext in favor of pageContext #3515
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for jumping on this!
contextKey = `layoutContext` | ||
result[`layoutContext`] = pageOrLayout.context | ||
} else { | ||
result[`pathContext`] = pageOrLayout.context // deprecated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just do a breaking change — this will mean loading the same data twice into the browser which could get expensive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
6aee25f
to
9659fa1
Compare
Changed this, going to merge into v2 branch. |
Switching page context for path context to improve the API re: #1456