React: How to handle changes to settings? #1687
Unanswered
Rangel-Digital
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am making a Wordpress plugin with Lightgallery. It's a Gutenberg block which uses React.
I have a react component, and the gallery renders fine on initial page load, but I have some controls that change the settings. The settings are stored in attributes.lgSettings, which is an object that contains all of the settings. I haven't found a way to make the gallery re-open correctly after I change one of the settings.
If one of the settings changes, how do I reinitialize the gallery with the new settings?
Beta Was this translation helpful? Give feedback.
All reactions