Skip to content

fix(storage): avoid calling setItem with the state just retrieved #2305

fix(storage): avoid calling setItem with the state just retrieved

fix(storage): avoid calling setItem with the state just retrieved #2305

Re-run triggered August 14, 2024 12:30
Status Success
Total duration 1m 27s
Artifacts

lint-and-type.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
lint: src/context.ts#L58
Mutating a value returned from a function whose return value should not be mutated
lint: src/react/shallow.ts#L17
Mutating a value returned from a function whose return value should not be mutated
lint: tests/middlewareTypes.test.tsx#L30
Hooks may not be referenced as normal values, they must be called. See https://react.dev/reference/rules/react-calls-components-and-hooks#never-pass-around-hooks-as-regular-values
lint: tests/middlewareTypes.test.tsx#L31
Hooks may not be referenced as normal values, they must be called. See https://react.dev/reference/rules/react-calls-components-and-hooks#never-pass-around-hooks-as-regular-values