feat(react): add useWrnStore bridge over useSyncExternalStore

Resolves WRNexus stores from inside islands, reading through the cached
snapshot so React sees a stable reference. Unknown store names throw
with the list of registered stores rather than failing opaquely.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-18 15:12:33 +05:30
co-authored by Claude Opus 5
parent 468f63f378
commit ce67d0d1d2
5 changed files with 333 additions and 740 deletions
+8 -4
View File
@@ -71,12 +71,16 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/bun": "^1.3.14",
"eslint": "^10.8.0",
"happy-dom": "^20.11.1",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"eslint": "^10.8.1",
"happy-dom": "^20.11.2",
"prettier": "^3.9.6",
"react": "^19",
"react-dom": "^19",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.65.0"
"typescript": "^6.0.3",
"typescript-eslint": "^8.67.0"
},
"engines": {
"bun": ">=1.3.0"