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

Support Angular Signals #896

Open
patdx opened this issue Mar 19, 2023 · 1 comment
Open

Support Angular Signals #896

patdx opened this issue Mar 19, 2023 · 1 comment

Comments

@patdx
Copy link
Owner

patdx commented Mar 19, 2023

When Angular 16 comes out, it may be interesting to support.

@patdx
Copy link
Owner Author

patdx commented Jan 26, 2024

In the meantime it should be relatively easy to use:

import { toSignal } from '@angular/core/rxjs-interop';

While I don't want this library to be tied to Angular, I imagine it could be useful for people using Angular.

If this library supported this directly, I think I would add Angular as an optional peerDependency and have a separate import entry point, eg:

import { toSignal } from 'zustand-rx/angular';

This entrypoint should also NOT use rxjs as well, to allow bundle size savings for people who just want Angular signals without importing RxJS.

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

No branches or pull requests

1 participant