Skip to content

Commit

Permalink
release got-react
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnichase committed Jun 20, 2024
1 parent a56ee94 commit 510c88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/got-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gothub/got-react",
"version": "0.0.11",
"version": "0.0.12",
"license": "MIT",
"type": "module",
"main": "dist/module/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/got-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export const setup = ({
getState = reduxStore.getState as () => State;
} else {
onError('You must provide either a Redux store or an Atom');
return;
throw new Error('You must provide either a Redux store or an Atom');
}

if (!useSelector) {
onError('You must provide a useSelector function');
return;
throw new Error('You must provide a useSelector function');
}

const api = createApi({
Expand Down

0 comments on commit 510c88c

Please sign in to comment.