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

BUG: Re-rendering of Components Error Context #48

Open
mtmanning93 opened this issue Nov 12, 2023 · 0 comments
Open

BUG: Re-rendering of Components Error Context #48

mtmanning93 opened this issue Nov 12, 2023 · 0 comments
Labels
Bug Something isn't working Frontend Related to the frontend

Comments

@mtmanning93
Copy link
Owner

Describe the bug
Components are rendering twice in the browser after the ErrorAlert (success message) timeout. After debugging it appears to be down to the ErrorContext or ErrorProvider. More likely the ErrorProvider updating after components have mounted.

To Reproduce
Steps to reproduce the behavior:

  1. Login and edit a post.
  2. On submission of a valid form watch screen.
  3. After the alert disappears observe a second render.

Expected behavior
One render before the alert disappears.

Screenshots
Cannot screenshot this must observe using steps above

Desktop (please complete the following information):

  • OS: iOS
  • Browser: chrome

Smartphone (please complete the following information):
N/A

Additional context
Potential for a complete restructure of the error notification system.

@mtmanning93 mtmanning93 added Bug Something isn't working Frontend Related to the frontend labels Nov 12, 2023
@mtmanning93 mtmanning93 added this to the Craft Product Backlog milestone Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Frontend Related to the frontend
Development

No branches or pull requests

1 participant