@nextop-os/ui-react-hooks
v0.0.16
Published
Host-agnostic React hook helpers for shared Nextop frontend packages.
Readme
@nextop-os/ui-react-hooks
Host-agnostic React hook helpers for shared Nextop frontend packages.
This package is published to npm as @nextop-os/ui-react-hooks.
Use it for narrow reusable React hook patterns such as external-store snapshot subscription and selector reads. Keep domain hooks and UI components in their owning packages.
Prefer this package over adding new direct useSyncExternalStore wrappers in
shared frontend packages so subscription semantics stay consistent.
This package does not replace adapter-level snapshot memoization. If a non-React
adapter exposes a derived getSnapshot(), keep reference-stable snapshot reuse
in the owning package.
