apideck-libraries / vault-core

Apideck Vault Modal component for React
https://www.apideck.com/products/vault
MIT License
7 stars 1 forks source link

Make sure component re-renders when token updates #38

Closed jakeprins closed 2 years ago

jakeprins commented 2 years ago

When a token updates it's not always directly reflected, resulting in session error or some confusion. The best way was to render the component was only when the token is present, but it should also be possible to just update the token prop and set the open prop to true.