Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: AnimatedValue: Attempting to set value to undefined #290

Open
Filsufius opened this issue Jun 9, 2023 · 4 comments
Open

Error: AnimatedValue: Attempting to set value to undefined #290

Filsufius opened this issue Jun 9, 2023 · 4 comments

Comments

@Filsufius
Copy link

Error received when using Copilot on two different tabs of a bottom tab navigator. A button on each screen starts Copilot. Once copilot tooltip tour is viewed on one screen, a press of the button on the other screen will throw the error, and no tooltip is shown.

@phitup
Copy link

phitup commented Jul 23, 2023

Did you have any solution?

@murilo-alvesmelo
Copy link

@phitup @Filsufius did you achieve resolution this problem?

@lalmachado
Copy link

i have the same issue

@jony89
Copy link

jony89 commented Jan 17, 2025

Waiting for a sec before starting worked for me. also need to be mixed with listening to totalStepsNumber from the hook.

something like

  useEffect(() => {
    if (totalStepsNumber === 0) return undefined;

    const startCopilot = async () => {
      setTimeout(() => start(), 2000);
      copilotEvents.on('stop', () => { ... });
    };

    startCopilot();

    return () => {
      if (copilotEvents) copilotEvents.off('stop');
    };
  }, [copilotEvents, totalStepsNumber]);

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

No branches or pull requests

5 participants