We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a7d844 commit 8d541c5Copy full SHA for 8d541c5
client/src/hooks/useFromStore/index.js
@@ -7,7 +7,8 @@ export default function useFromStore({
7
action,
8
id,
9
entityType,
10
- path
+ path,
11
+ allowPartial
12
}) {
13
return useSelector(state => {
14
if (!action && !path) return null;
@@ -19,7 +20,7 @@ export default function useFromStore({
19
20
case "meta":
21
return meta(requestKey, state.entityStore);
22
case "grab":
- return grab(entityType, id, state.entityStore);
23
+ return grab(entityType, id, state.entityStore, allowPartial);
24
default:
25
return null;
26
}
0 commit comments