jotaijs / jotai-ssr

Jotai utilities for server-side rendering (SSR)
MIT License
17 stars 0 forks source link

Do you need to use RenderingBoundary with HydrationBoundary? #8

Open theogravity opened 1 month ago

theogravity commented 1 month ago

It's not clear to me if you do or not.

akkadaska commented 1 month ago

Currently, HydrationBoundary is designed to be used in conjunction with RenderingBoundary.
Specifically, it is necessary to use the Link component to navigate between pages that share the same Atom on the client side.

See: https://github.com/pmndrs/jotai/discussions/2692#discussioncomment-10510770

theogravity commented 1 month ago

Thanks. I would add this info to the readme for the hydrator

akkadaska commented 1 month ago

I'd really appreciate it if you could create a PR for this.