Skip to content

Commit eb2b9e1

Browse files
committed
Add comment
1 parent 1e1e9e3 commit eb2b9e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/ra-core/src/controller/list/useListParams.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export const useListParams = ({
8888
const location = useLocation();
8989
const navigate = useNavigate();
9090
const [localParams, setLocalParams] = useState(defaultParams);
91+
// As we can't conditionally call a hook, ff the storeKey is false,
92+
// we'll ignore the params variable later on and won't call setParams either.
9193
const [params, setParams] = useStore(
9294
storeKey || `${resource}.listParams`,
9395
defaultParams

0 commit comments

Comments
 (0)