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

[solid-form] The async initial values example doesn't work #1347

Open
mattp0123 opened this issue Mar 28, 2025 · 0 comments
Open

[solid-form] The async initial values example doesn't work #1347

mattp0123 opened this issue Mar 28, 2025 · 0 comments

Comments

@mattp0123
Copy link

Issue: It won't trigger re-render when the data is loaded.

The doc: https://github.com/TanStack/form/blob/main/docs/framework/solid/guides/async-initial-values.md

Here's the minimal reproduction: https://stackblitz.com/edit/solidjs-templates-cicpay3v?file=src%2FApp.tsx

There are two problems of this example:

  • Returned object value from createQuery should not be destructured
  • Use <Show fallback={<p>loading..</p>}> or <Switch> <Match> , instead of early returning
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