Skip to content

Commit

Permalink
useFlowmap callback
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Jan 9, 2025
1 parent e0c3f36 commit 5f82bb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/webgl/components/flowmap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const FlowmapContext = createContext<FlowmapContextType>(
export function useFlowmap(callback: FlowmapCallback) {
const { addCallback, removeCallback } = useContext(FlowmapContext)

// biome-ignore lint/correctness/useExhaustiveDependencies: callback as deps can trigger infinite re-renders
useEffect(() => {
if (!callback) return

Expand Down

1 comment on commit 5f82bb2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 69
🟠 Accessibility: 89
🟢 Best practices: 96
🟠 SEO: 63

Lighthouse ran on https://satus-je4w6jtxr-darkroom-engineering.vercel.app/

Please sign in to comment.