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 for zod-form-data #96

Open
Haschtl opened this issue Nov 16, 2023 · 0 comments
Open

Support for zod-form-data #96

Haschtl opened this issue Nov 16, 2023 · 0 comments

Comments

@Haschtl
Copy link

Haschtl commented Nov 16, 2023

Using a zod-form-data schema breaks trpc-panel.

import { zfd } from 'zod-form-data';

const uploadFileSchema = zfd.formData({
  file: zfd.file(),
  id: zfd.numeric(),
});

Using this schema as an input for a mutation causes the panel to crash: TypeError: Cannot use 'in' operator to search for 'Symbol(Symbol.iterator)' in undefined

Is there any solution to avoid this issue? I think it would be enough to partially "ignore" FormData, as inputs may be hard to implement. Having these mutations just listed without the Input-field would be great!

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