fix(web): replace Zustand device store with local useDeviceId hook
Move device ID logic from @multica/store (Zustand persist) into a simple useDeviceId hook in the web app. SSR returns empty string, client reads/writes localStorage directly — no hydration mismatch, no suppressHydrationWarning needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7d326695c1
commit
5f367fb6b7
7 changed files with 27 additions and 25 deletions
|
|
@ -11,6 +11,7 @@
|
|||
"dependencies": {
|
||||
"@multica/store": "workspace:*",
|
||||
"@multica/ui": "workspace:*",
|
||||
"uuid": "^13.0.0",
|
||||
"@hugeicons/core-free-icons": "^3.1.1",
|
||||
"@hugeicons/react": "^1.1.4",
|
||||
"next": "16.1.6",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue