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
Trigger argument on SWRMutationResponse is typed as
SWRMutationResponse
trigger: [ExtraArg] extends [never] ? TriggerWithoutArgs<Data, Error, ExtraArg, SWRMutationKey> : TriggerWithArgs<Data, Error, SWRMutationKey, ExtraArg>;
but TriggerWithoutArgs
is defined as
interface TriggerWithoutArgs<Data = any, Error = any, SWRMutationKey extends Key = Key, ExtraArg = never>
Seems that the type parameter order with ExtraArg and SWRMutationKey is backwards. Is this intentional or just a typo?
ExtraArg
SWRMutationKey
Happy to submit a PR if needed
SWR version: 2.2.1-beta.0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug report
Description / Observed Behavior
Trigger argument on
SWRMutationResponse
is typed asbut TriggerWithoutArgs
is defined as
Seems that the type parameter order with
ExtraArg
andSWRMutationKey
is backwards. Is this intentional or just a typo?Happy to submit a PR if needed
Additional Context
SWR version: 2.2.1-beta.0
The text was updated successfully, but these errors were encountered: