Signals polyfill + pat-bind two-way databinding pattern - #1288
Merged
Merged
Conversation
Contributor
|
That sound interesting. Signals are used by many JS frameworks already, Svelte 5 introduced them under the name runes. |
8 tasks
thet
added a commit
to plone/plone.app.z3cform
that referenced
this pull request
Jun 12, 2026
thet
added a commit
to plone/plone.app.z3cform
that referenced
this pull request
Jun 16, 2026
thet
added a commit
to plone/plone.app.z3cform
that referenced
this pull request
Sep 15, 2026
thet
force-pushed
the
thet/signals
branch
2 times, most recently
from
September 23, 2026 23:32
f044813 to
c6656ca
Compare
14 tasks
thet
force-pushed
the
thet/signals
branch
2 times, most recently
from
September 26, 2026 14:04
d9a69e1 to
7ecc178
Compare
The TC39 signals specification for data binding. See: https://github.com/tc39/proposal-signals Uses: https://github.com/proposal-signals/signal-polyfill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the new
pat-bindpattern for two-way data binding using the not-yet-ready-specified TC39 signals specification in a custom polyfill.pat-bind allows for declarative two-way data binding:
The full documentation is at: https://github.com/Patternslib/Patterns/blob/thet/signals/src/pat/bind/documentation.md
NOTE: event TC39 signals is not ready yet, it is used in preact, lit. The specification is meant as a foundation for any reactive framework out there.
https://github.com/tc39/proposal-signals
https://github.com/proposal-signals/signal-polyfill
https://github.com/maverick-js/signals
https://github.com/preactjs/signals
https://lit.dev/docs/data/signals/