Repository navigation
Minor Changes
- #12
dbf3304Thanks @JoviDeCroock! - Export React's original useSyncExternalStore hook with branded snapshot results and a stable subscription contract. Document snapshot caching and hydration obligations.
Patch Changes
-
c687189Thanks @JoviDeCroock! - Document how stableref's type-level stability contracts interact with React Compiler optimization, hook recognition, and exhaustive dependency linting. -
#4
a848023Thanks @ayden94! - Support ordinary explicit type arguments for strict React and PreactuseMemo<T>,useCallback<F>, anduseImperativeHandle<T, R>calls by defaulting the dependency type toStableDeps.Explicit calls still reject unproven reference dependencies, with diagnostics against
StableDependency. Inferred calls retain the existing actionable dependency diagnostics. Hook identity and stability branding are unchanged. -
#5
17a99eaThanks @ayden94! - Preserve mutable initialized refs and precise current-value types with React 18 declarations while retaining React 19 compatibility and branding only the ref container. -
#10
14f1b55Thanks @ayden94! - Accept optional stable dependency lists in the strict React and Preact effect and imperative handle hooks while continuing to reject unproven reference dependencies.