unstable_httpBatchStreamLink and formData -> not compatible
Hy, i am using unstable_httpBatchStreamLink to use the async generators and it is working very well. But if I use this Link i cannot upload any File with Formdata.
if im using the normal httpLink I can upload the files with Formdata but not use the async generators. The input Validation uses zod-form-data "zfd.formData({ file: zfd.file() })" like in the documentation.. pls help me, maybe I am using the links in a bad way?
Using V11
Solution:Jump to solution
links: [
splitLink({
condition: (op) => op.path=== 'MyPathFromFormData',
true: unstable_httpSubscriptionLink({
url,...
2 Replies
Solution
links: [
splitLink({
condition: (op) => op.path=== 'MyPathFromFormData',
true: unstable_httpSubscriptionLink({
url,
transformer,
}),
false: httpBatchLink({
url,
transformer,
}),
}),
],