Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Svelte #134

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Add support for Svelte #134

merged 1 commit into from
Sep 13, 2022

Conversation

marvinhagemeister
Copy link
Member

This PR adds support for Svelte. Svelte has this neat feature where they'll always subscribe to values that have a .subscribe() method and return an unsubscribe function. We can tap into that and basically have signals core working with svelte without needing to write an adapter.

preact-signals-svelte.mp4

@changeset-bot
Copy link

changeset-bot bot commented Sep 13, 2022

🦋 Changeset detected

Latest commit: bc0080c

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-core Minor

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 13, 2022

Size Change: -2.22 kB (-4%)

Total Size: 59.8 kB

Filename Size Change
docs/dist/assets/basic.********.js 219 B -2 B (-1%)
docs/dist/assets/client.********.js 45.7 kB -1 B (0%)
docs/dist/assets/index.********.js 1.11 kB -2.35 kB (-68%) 🏆
docs/dist/assets/signals-core.module.********.js 932 B +99 B (+12%) ⚠️
docs/dist/assets/signals.module.********.js 5.67 kB -3 B (0%)
packages/core/dist/signals-core.js 985 B +24 B (+2%)
packages/core/dist/signals-core.mjs 804 B +18 B (+2%)
ℹ️ View Unchanged
Filename Size
docs/dist/assets/style.********.css 585 B
packages/preact/dist/signals.js 1.13 kB
packages/preact/dist/signals.mjs 1.11 kB
packages/react/dist/signals.js 792 B
packages/react/dist/signals.mjs 749 B

compressed-size-action

@netlify
Copy link

netlify bot commented Sep 13, 2022

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 804d093
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/63202cd4c0c56600081cf682
😎 Deploy Preview https://deploy-preview-134--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 settings.

@netlify
Copy link

netlify bot commented Sep 13, 2022

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 64ef7a1
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/63202e34891df60008cefc56
😎 Deploy Preview https://deploy-preview-134--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 settings.

@netlify
Copy link

netlify bot commented Sep 13, 2022

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 104feb9
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/63202e8e297daa0008c48c6b
😎 Deploy Preview https://deploy-preview-134--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 settings.

@netlify
Copy link

netlify bot commented Sep 13, 2022

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit bc0080c
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/632032333b0e810009ed46d2
😎 Deploy Preview https://deploy-preview-134--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 settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants