Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "http-react",
"version": "3.7.7",
"version": "3.7.8",
"description": "React hooks for data fetching",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function SSRSuspense({
// This will render the fallback in the server
return (
ssr ? fallback : <Suspense fallback={fallback}>{children}</Suspense>
) as JSX.Element
) as React.JSX.Element
}

export function FetchConfig(props: FetchContextType) {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/others.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export function useSuccess(id: any) {
}

/**
* @deprecated - Use the useFetch hook instead
* Get everything from a `useFetch` call using its id
*/
export function useFetchId<ResponseType = any, BodyType = any>(id: any) {
Expand Down
Loading