Skip to content

Dev: Fix useExhaustiveDependencies — Weather Toolkit #5523

@conbrad

Description

@conbrad

Describe the task
Remove biome-ignore lint/correctness/useExhaustiveDependencies comments and properly fix dep arrays in the Weather Toolkit hook and page.

Acceptance Criteria

  • Remove biome-ignore comment from apps/wps-web/src/features/weatherToolkit/hooks/useWxChartCache.ts (line 42 — cache reset effect)
  • Remove biome-ignore comment from apps/wps-web/src/features/weatherToolkit/pages/WeatherToolkitPage.tsx (line 30)
  • yarn biome lint passes with zero useExhaustiveDependencies errors on both files
  • Scrubbing through forecast hours loads charts correctly
  • Changing model type or run hour resets the cache (no stale images from previous model)

Additional context

  • The prefetch and unmount cleanup effects in useWxChartCache.ts are already correct — only the cache reset effect at line 42 needs attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    4Refinementthis ticket is ready for refinement with the teamTaskTechnical task that cannot be written as a user story

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions