client/src/store/index.ts
Function querySyncMiddleware
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const querySyncMiddleware: Middleware = () => (next) => (action) => {
const { query, isReady } = router;
if (!isReady) return next(action);
Object.entries(QUERY_PARAMS_MAP).forEach(async ([param, queryState]) => {
Avoid too many return
statements within this function. Open
Open
return param;