uselessSpringuseSpring call has only static inputs and non-updating dependencies; replace it with a constant or remove the hook.small-rules/no-useless-use-springDisallow useSpring hooks whose config and dependencies are entirely static
uselessSpringuseSpring call has only static inputs and non-updating dependencies; replace it with a constant or remove the hook.This rule accepts one options object after the severity.
const springs = useSpring({ from: { x: 0 },});const springs = useSpring({ from: { x: 0 }, to: { x: 1 },});