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

open doesn't react on last changes made in short period of time #175

Closed
beautyfree opened this issue Nov 22, 2023 · 2 comments
Closed

open doesn't react on last changes made in short period of time #175

beautyfree opened this issue Nov 22, 2023 · 2 comments

Comments

@beautyfree
Copy link

beautyfree commented Nov 22, 2023

For example if some logic close drawer and open it again by change of open variable state - drawer does not open:

  const [open, setOpen] = useState(true);

  useEffect(() => {
    setOpen(false);
    setTimeout(() => {
      setOpen(true);
    }, 100); // try different values
  }, []);

In my case drawer with "Try again" button closes after click on it, then processes retry and opens drawer if error still exists

@beautyfree
Copy link
Author

looks like it problem only on preact
https://codesandbox.io/p/sandbox/young-architecture-6t4dzs

@beautyfree
Copy link
Author

preactjs/preact#4216

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