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
injectStore() runs before input signals are set which makes it throws an error at runtime if the form is provided as an input signal.
main.ts:8 ERROR RuntimeError: NG0950: Input is required but no value is available yet
https://codesandbox.io/p/devbox/q9w9mv
Open the shared link and see the error in the web dev tools.
The error is caused by the following code:
isValid = injectStore( this.form(), (state) => state.fieldMeta[this.name()].errors.length === 0 );
In the component: FirstNameComponent
The injectStore should call the business logic after input signals are set like Angular Query does.
Every time
No response
None
@tanstack/angular-form v1.3.0
v5.8.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
injectStore() runs before input signals are set which makes it throws an error at runtime if the form is provided as an input signal.
Your minimal, reproducible example
https://codesandbox.io/p/devbox/q9w9mv
Steps to reproduce
Open the shared link and see the error in the web dev tools.
The error is caused by the following code:
In the component: FirstNameComponent
Expected behavior
The injectStore should call the business logic after input signals are set like Angular Query does.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
TanStack Form adapter
None
TanStack Form version
@tanstack/angular-form v1.3.0
TypeScript version
v5.8.3
Additional context
No response
The text was updated successfully, but these errors were encountered: