We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
withProps
signals
signalStore skips any symbols of withProps.
signalStore
In this example, secret is undefined
secret
const SECRET = Symbol('SECRET'); const Store = signalStore(withProps(() => ({ [SECRET]: 'secret' }))); @Component({ selector: 'app-root', template: `Secret: {{ secret }}`, providers: [Store], }) export class App { protected store = inject(Store); protected secret = this.store[SECRET]; }
https://stackblitz.com/edit/github-wnvurbbx?file=src%2Fmain.ts
Symbols should be used as well
NgRx 19, Angular 19
No response
The text was updated successfully, but these errors were encountered:
Perhaps related:
#4664 (reply in thread)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
signalStore
skips any symbols ofwithProps
.In this example,
secret
is undefinedhttps://stackblitz.com/edit/github-wnvurbbx?file=src%2Fmain.ts
Expected behavior
Symbols should be used as well
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
NgRx 19, Angular 19
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: