Skip to content

Commit 8d541c5

Browse files
committed
[B] Add allow partial option to useFromStore
1 parent 7a7d844 commit 8d541c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/src/hooks/useFromStore/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default function useFromStore({
77
action,
88
id,
99
entityType,
10-
path
10+
path,
11+
allowPartial
1112
}) {
1213
return useSelector(state => {
1314
if (!action && !path) return null;
@@ -19,7 +20,7 @@ export default function useFromStore({
1920
case "meta":
2021
return meta(requestKey, state.entityStore);
2122
case "grab":
22-
return grab(entityType, id, state.entityStore);
23+
return grab(entityType, id, state.entityStore, allowPartial);
2324
default:
2425
return null;
2526
}

0 commit comments

Comments
 (0)