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

feat(v2): new signals implementation #6443

Draft
wants to merge 90 commits into
base: build/v2
Choose a base branch
from
Draft

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented Jun 2, 2024

Overview

This is an exploration (may not land) the Signal implementation for something more clear / more maintainable.

Todo:

  • Figure out why the unit test complains when removing .only
  • element subscriber type
  • change all subscriber invocations to be the format that Signal2 uses
  • store support (deep)
  • (de)serialization
  • replace original signal
  • remove original signal and rename

Note about cross-container support: because:

  • containers can resume in any order
  • qwikloader only handles events, not serialization
  • versions may differ between containers

, the only way to communicate between containers is with custom events like "q-signal:my- global-name" that dispatch signal values. This would be another effect handled by a separate GlobalSignal.

@mhevery mhevery requested a review from a team as a code owner June 2, 2024 13:21
@mhevery mhevery marked this pull request as draft June 2, 2024 13:21
Copy link

cloudflare-workers-and-pages bot commented Jun 2, 2024

Deploying qwik-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 23a0a66
Status:🚫  Build failed.

View logs

@JerryWu1234
Copy link
Contributor

image

Will this PR also fix these test problems?

@wmertens
Copy link
Member

@JerryWu1234 right that's the idea, we were having trouble getting signals to work so we decided to improve the implementation

Copy link

changeset-bot bot commented Jul 23, 2024

⚠️ No Changeset found

Latest commit: 5b15250

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Varixo and others added 7 commits August 31, 2024 19:04
fix store deserialization without effects

Co-authored-by: Jack Shelton <thejackshelton@users.noreply.github.com>
Co-authored-by: Wout Mertens <Wout.Mertens@gmail.com>
Co-authored-by: Jack Shelton <thejackshelton@users.noreply.github.com>
@Varixo Varixo self-assigned this Sep 12, 2024
Copy link

pkg-pr-new bot commented Sep 21, 2024

Open in Stackblitz

npm i https://pkg.pr.new/@builder.io/qwik@6443
npm i https://pkg.pr.new/@builder.io/qwik-city@6443
npm i https://pkg.pr.new/eslint-plugin-qwik@6443
npm i https://pkg.pr.new/create-qwik@6443

commit: 5b15250

Copy link
Contributor

github-actions bot commented Sep 21, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 5b15250

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

Successfully merging this pull request may close these issues.

4 participants