Merge new SSR context on client-side navigation #53057
Closed
DAreRodz
started this conversation in
Interactivity API
Replies: 3 comments 1 reply
-
Also relevant here: #53056 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I made a preliminary version of this in the WooCommerce repo because they need it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I opened a PR to fix this: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, an element's context (i.e.,
wp-context
) is initialized once (during hydration). However, when client-side navigation happens, it could contain a newly defined context for the new HTML that should not be ignored.We must read and merge the new context into the current one, keeping the existing props.
Beta Was this translation helpful? Give feedback.
All reactions