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

Connect React context provider if it is created after a child using that context has been already hydrated #58

Closed
luisherranz opened this issue Aug 24, 2022 · 1 comment
Labels

Comments

@luisherranz
Copy link
Member

If a block that provides a React context is hydrated after a block child that uses that context, the context is not connected between the two.

That works correctly in React: https://codesandbox.io/s/romantic-mclean-fc26hm?file=/src/App.js

You can test it out by adding a setTimeout with a bigger value to the Interactive Parent block so it is hydrated after the Interactive Child block.

Related to #57.

@luisherranz
Copy link
Member Author

Closed as we're not actively working on this experiment anymore and this works fine in the Directives Hydration.

@luisherranz luisherranz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant