Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): do not call useSuspenseQueries conditionally
Which breaks a rule of hooks and makes ESLint complaint. > web/src/queries/storage.ts 162:19 error React Hook > "useSuspenseQueries" is called conditionally. React Hooks must be called > in the exact same order in every component render. Did you accidentally > call a React Hook after an early return? react-hooks/rules-of-hooks Fixed it by depending on a previous query as explained at https://tanstack.com/query/v5/docs/framework/react/guides/dependent-queries#usequeries-dependent-query
- Loading branch information