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

logs not updating #127

Open
jothikannan89 opened this issue Aug 25, 2023 · 0 comments
Open

logs not updating #127

jothikannan89 opened this issue Aug 25, 2023 · 0 comments

Comments

@jothikannan89
Copy link

I want to update the logs with useEffect dependencies. But with the dependencies updated, nothing is updating on the logs

  useEffect(() => {
    const hookedConsole = Hook(
      iframeRef.current.contentWindow.console,
      (log) => setLogs((currLogs) => [...currLogs, log]),
      false
    );
    return () => Unhook(hookedConsole);
  }, [updated]);
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

1 participant