Skip to content

fix: svg re-render on theme change#7

Merged
anup-a merged 1 commit intoanup-a:mainfrom
ansh-saini:main
Oct 16, 2020
Merged

fix: svg re-render on theme change#7
anup-a merged 1 commit intoanup-a:mainfrom
ansh-saini:main

Conversation

@ansh-saini
Copy link
Contributor

Fixes #6

  • add waveSvg to state.
  • make use of useEffect to prevent waveSvg re-calculation on theme change.

@vercel
Copy link

vercel bot commented Oct 16, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/anup-a/svgwave/pkgnknto9
✅ Preview: https://svgwave-git-main.anup-a.vercel.app

@anup-a
Copy link
Owner

anup-a commented Oct 16, 2020

Cool. Nice work 👍

@anup-a anup-a merged commit 29fed9b into anup-a:main Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[React] [Fix] Changing theme should not re-render SVG waves

3 participants