Skip to content

Commit

Permalink
Fix canvas context not being initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
giraugh committed Oct 15, 2023
1 parent cde5442 commit 0c3a4d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-lizards-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stevent-team/react-party": patch
---

Fix canvas context not being initialised
2 changes: 1 addition & 1 deletion lib/useConfetti.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const useConfetti = (confettiOptions: Partial<ConfettiOptions> = {}) => {
return () => resizeObserver.disconnect()
}
return undefined
}, [])
}, [canvasRef.current])

// Render onto canvas
useAnimationFrame(currentTime => {
Expand Down

0 comments on commit 0c3a4d6

Please # to comment.