-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Trigger accepts only strings #229
Comments
thanks for opening the issue. what supabase-js versions are you using? |
Thanks for the quick response @psteinroe The dependencies I've installed:
|
can you by any chance provide a repro? I am using the exact same versions, and do not have this type error. The swr example in this repo is also using the same versions, and the type error is not thrown. |
At the moment I cannot reproduce the error anymore. I just moved from |
No, still got it unfortunately. I'll try and make a repro. |
I think I can replicate, will take a look asap. |
yep, messed up the types. Will publish a fix tomorrow. |
still not fixed. investigating further... |
the culprit is actually an update to |
Amazing you're able to replicate. I tried to replicate in a new repo, but didn't manage to get the error. |
Describe the bug
With
@supabase-cache-helpers/[email protected]
.The trigger function coming from
useUpsertMutation
anduseDeleteMutation
seems to accept only a string as its first argument.TypeScript gives me the following error:
Expected behavior
Expected to be able to supply an argument to the trigger function of type
Record<string, unknown>[]
.Additional context
Using the latest versions of all dependencies. Version
1.0.19
of@supabase-cache-helpers/postgrest-swr
.The text was updated successfully, but these errors were encountered: