preactjs / signals

Manage state with style in every framework
https://preactjs.com/blog/introducing-signals/
MIT License
3.71k stars 91 forks source link

Allow for context to propagate to components using context #381

Closed JoviDeCroock closed 1 year ago

JoviDeCroock commented 1 year ago

When a component utilises signals and one useContext that works with useState then context updates won't propagate as they are stopped by this condition

changeset-bot[bot] commented 1 year ago

đŸĻ‹ Changeset detected

Latest commit: 38635b6f2e2d115fa268ef67a97e2a22c97b603c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | @preact/signals | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

netlify[bot] commented 1 year ago

Deploy Preview for preact-signals-demo ready!

Name Link
Latest commit 38635b6f2e2d115fa268ef67a97e2a22c97b603c
Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/64a6d88190948e0008204454
Deploy Preview https://deploy-preview-381--preact-signals-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 1 year ago

Size Change: +262 B (0%)

Total Size: 69.3 kB

Filename Size Change
docs/dist/assets/index.********.js 1.08 kB +243 B (+29%) 🚨
docs/dist/assets/signals.module.********.js 1.98 kB +8 B (0%)
docs/dist/demos-********.js 3.35 kB +1 B (0%)
packages/preact/dist/signals.js 1.21 kB +6 B (0%)
packages/preact/dist/signals.mjs 1.15 kB +4 B (0%)
ℹī¸ View Unchanged | Filename | Size | | :--- | :---: | | `docs/dist/assets/client.********.js` | 46.6 kB | | `docs/dist/assets/jsxRuntime.module.********.js` | 282 B | | `docs/dist/assets/preact.module.********.js` | 4 kB | | `docs/dist/assets/signals-core.module.********.js` | 1.42 kB | | `docs/dist/assets/style.********.js` | 21 B | | `docs/dist/assets/style.********.css` | 1.21 kB | | `docs/dist/basic-********.js` | 244 B | | `docs/dist/nesting-********.js` | 1.13 kB | | `docs/dist/react-********.js` | 239 B | | `packages/core/dist/signals-core.js` | 1.48 kB | | `packages/core/dist/signals-core.mjs` | 1.5 kB | | `packages/react/dist/signals.js` | 1.25 kB | | `packages/react/dist/signals.mjs` | 1.21 kB |

compressed-size-action