gilbarbara / react-inlinesvg

An SVG loader component for ReactJS
https://codesandbox.io/s/github/gilbarbara/react-inlinesvg/tree/main/demo
MIT License
1.27k stars 100 forks source link

fix: props update does not trigger svg reload #214

Closed BB-fat closed 1 year ago

BB-fat commented 1 year ago

fix #213

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0fac9b06bfe5d6922ac5903f747f056d99d70fdc:

Sandbox Source
react-inlinesvg-demo Configuration
gilbarbara commented 1 year ago

As I mentioned in the issue, you can use a key in the component to refresh it. That's the React way.

BB-fat commented 1 year ago

Thanks for advice.