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

Mutate typescript #2744

Closed
eposha opened this issue Aug 13, 2023 · 3 comments · Fixed by #2753
Closed

Mutate typescript #2744

eposha opened this issue Aug 13, 2023 · 3 comments · Fixed by #2753

Comments

@eposha
Copy link

eposha commented Aug 13, 2023

Bug report

Description / Observed Behavior

What kind of issues did you encounter with SWR?

Expected Behavior

How did you expect SWR to behave here?

Repro Steps / Code Example

image image image image

Additional Context

SWR version.
2.2.1
Add any other context about the problem here.

The 2.2.0 version works fine for me

@driaug
Copy link

driaug commented Aug 13, 2023

Just noticed I am now also experiencing this bug!
No changes to dev environment.

Can confirm that 2.2.0 also works for me.

@Marco-Daniel
Copy link

I'm running into the same issue, it appears as if the generic for the datatype isn't passed down from the hook into the mutate

@satoren
Copy link

satoren commented Aug 18, 2023

Since #2708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants