-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Feature Request] Angular: Support zoneless #28403
Comments
Does someone want to work on it? I appreciate any help and can provide any guidance. |
Hey, the task sounds really interesting and I would like to work on this! |
Hi @anedomansky Thank you for taking it! I will assign this task to you. Feel free to create a draft PR and link the issue also in a early state even if the work isn’t done completely. Let me know if you need any kind of support! |
Hey @valentinpalkovic and thank you for assigning the task to me and offering your support 💪 |
Hi @anedomansky Do you have any remaining questions or issues getting started? Please let me know so that I can unblock you. On the other side, if you don't have time to work on it, just let me know and I will unassign you. That is also totally fine! But then others might want to pick up the task. |
Hey @valentinpalkovic , Thanks for reaching out! |
Any update to this? I've looked at the commits but looks like they are not in main branch? |
Hey @valentinpalkovic, any news on this? I see that the Draft PR has some build issues. Anyway I can help get this through? |
Picking up the work from @anedomansky now and try to finalize it. |
Discussed in #28400
Originally posted by valentinpalkovic July 1, 2024
Is your feature request related to a problem? Please describe.
Currently, Storybook always uses zone.js for change detection.
Describe the solution you'd like
Angular has introduced an experimental feature called zoneless.
The main benefit is that users can remove Zone.js to
The solution would be to enable experimental zoneless mode in Storybook by setting an experimental flag in Storybook's Angular builder options
Tasklist
-- code/frameworks/angular/src/builders/build-storybook/schema.json
-- https://github.com/storybookjs/storybook/blob/next/code/frameworks/angular/src/builders/build-storybook/index.ts
-- https://github.com/storybookjs/storybook/blob/next/code/frameworks/angular/src/builders/start-storybook/schema.json
-- https://github.com/storybookjs/storybook/blob/next/code/frameworks/angular/src/builders/start-storybook/index.ts
-- This file imports always globals.ts, which loads always zone.js. We could try to remove the import and rely on people setting
zone.js
in the polyfills section of theirangular.json
, which Storybook in theory should also pick up.-- If the
experimentalZoneless
flag is set, we would have to register the zoneless provider here:Acceptance criteria
angular.json
's<project>/architect/build/polyfills
array defined AND theexperimentalZoneless
option is set in<project>/architect/storybook|build-storybook/options
, Storybook and change detection via control changes should work.Development workflow
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
As a maintainer I can support contributors to implement this feature if questions arise.
Additional context
No response
The text was updated successfully, but these errors were encountered: