Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Merge new SSR context on client-side navigation #155

Closed
DAreRodz opened this issue Feb 20, 2023 · 2 comments
Closed

Merge new SSR context on client-side navigation #155

DAreRodz opened this issue Feb 20, 2023 · 2 comments

Comments

@DAreRodz
Copy link
Collaborator

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.

@luisherranz
Copy link
Member

Also relevant here: #154 (comment)

@luisherranz
Copy link
Member

luisherranz commented Jun 29, 2023

I made a preliminary version of this in the WooCommerce repo because they need it.

@WordPress WordPress locked and limited conversation to collaborators Jul 27, 2023
@luisherranz luisherranz converted this issue into a discussion Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants