-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #458 from psteinroe/feat/abort-signal
feat: support abort signal in react query
- Loading branch information
Showing
8 changed files
with
97 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@supabase-cache-helpers/postgrest-react-query": minor | ||
--- | ||
|
||
feat: support abort signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@supabase-cache-helpers/postgrest-core": patch | ||
--- | ||
|
||
feat: is transform builder helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/postgrest-core/src/lib/is-postgrest-transform-builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { PostgrestTransformBuilder } from '@supabase/postgrest-js'; | ||
import { GenericSchema } from '@supabase/postgrest-js/dist/module/types'; | ||
|
||
export const isPostgrestTransformBuilder = < | ||
Schema extends GenericSchema, | ||
Row extends Record<string, unknown>, | ||
Result, | ||
RelationName = unknown, | ||
Relationships = unknown, | ||
>( | ||
q: unknown, | ||
): q is PostgrestTransformBuilder< | ||
Schema, | ||
Row, | ||
Result, | ||
RelationName, | ||
Relationships | ||
> => { | ||
return ( | ||
typeof ( | ||
q as PostgrestTransformBuilder< | ||
Schema, | ||
Row, | ||
Result, | ||
RelationName, | ||
Relationships | ||
> | ||
).abortSignal === 'function' | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.