Skip to content
Open
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
4 changes: 2 additions & 2 deletions docs/ja/openapi-react-query/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const MyComponent = () => {

if (isLoading || !data) return "Loading...";

if (error) return `An error occured: ${error.message}`;
if (error) return `An error occurred: ${error.message}`;

return <div>{data.title}</div>;
};
Expand Down Expand Up @@ -97,7 +97,7 @@ const MyComponent = () => {

if (isLoading || !data) return "Loading...";

if (error) return `An error occured: ${error.message}`;
if (error) return `An error occurred: ${error.message}`;

return <div>{data.title}</div>;
};
Expand Down
5 changes: 2 additions & 3 deletions docs/openapi-react-query/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const MyComponent = () => {

if (isLoading || !data) return "Loading...";

if (error) return `An error occured: ${error.message}`;
if (error) return `An error occurred: ${error.message}`;

return <div>{data.title}</div>;
};
Expand Down Expand Up @@ -96,7 +96,7 @@ const MyComponent = () => {

if (isLoading || !data) return "Loading...";

if (error) return `An error occured: ${error.message}`;
if (error) return `An error occurred: ${error.message}`;

return <div>{data.title}</div>;
};
Expand All @@ -107,4 +107,3 @@ const MyComponent = () => {
::: tip
You can find more information about `createFetchClient` on the [openapi-fetch documentation](../openapi-fetch/index.md).
:::

2 changes: 1 addition & 1 deletion docs/openapi-react-query/query-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const App = () => {
);

if (!data || isLoading) return "Loading...";
if (error) return `An error occured: ${error.message}`;
if (error) return `An error occurred: ${error.message}`;

return <div>{data.firstname}</div>;
};
Expand Down
2 changes: 1 addition & 1 deletion docs/openapi-react-query/use-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const App = () => {
});

if (!data || isLoading) return "Loading...";
if (error) return `An error occured: ${error.message}`;
if (error) return `An error occurred: ${error.message}`;

return <div>{data.firstname}</div>;
};
Expand Down
Loading