ITADN

createBreakpoints store doesn't update on hydration

#813Opencreate-signal 创建于 2025-10-02
C
create-signalcommented
### Describe the bug When using `createBreakpoints` from `@solid-primitives/media` the initial value for each breakpoint during SSR is false. When the page hydrates, the initial value stays false, even when the browser window is larger than the breakpoint. If you then resize the window to smaller than the breakpoint and then larger, it will finally update to true. ``` "dependencies": { "@solid-primitives/media": "^2.3.3", "@solidjs/router": "^0.15.0", "@solidjs/start": "^1.1.0", "solid-js": "^1.9.5", "vinxi": "^0.5.7" } ``` ### Minimal Reproduction Link https://stackblitz.com/edit/github-bdssbcwx?file=package.json,src%2Froutes%2Findex.tsx
0 条评论