Skip to content

Animation requires Refresh #1966

Sep 25, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi! Are you using react? Where do you initialize the Ripple component? Did you try doing it inside the useEffect?

  useEffect(() => {
    const init = async () => {
      const { Ripple, initTE } = await import("tw-elements");
      initTE({ Ripple}, { allowReinits: true });                - options if needed
    };
    init();
  }, []);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tiagoml98
Comment options

Answer selected by tiagoml98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants