Skip to content

Commit 39bb419

Browse files
authored
Merge pull request #207 from atomic-state/feats/fetch-options-key
enh(fetchOptions):
2 parents 3597b63 + 65ab61f commit 39bb419

7 files changed

Lines changed: 946 additions & 924 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "http-react",
3-
"version": "3.7.7",
3+
"version": "3.7.8",
44
"description": "React hooks for data fetching",
55
"main": "dist/index.js",
66
"scripts": {

src/components/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function SSRSuspense({
3535
// This will render the fallback in the server
3636
return (
3737
ssr ? fallback : <Suspense fallback={fallback}>{children}</Suspense>
38-
) as JSX.Element
38+
) as React.JSX.Element
3939
}
4040

4141
export function FetchConfig(props: FetchContextType) {

src/hooks/others.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export function useSuccess(id: any) {
221221
}
222222

223223
/**
224+
* @deprecated - Use the useFetch hook instead
224225
* Get everything from a `useFetch` call using its id
225226
*/
226227
export function useFetchId<ResponseType = any, BodyType = any>(id: any) {

0 commit comments

Comments
 (0)