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

Child components update before parent during updates #748

Open
youking-lib opened this issue May 19, 2023 · 1 comment
Open

Child components update before parent during updates #748

youking-lib opened this issue May 19, 2023 · 1 comment

Comments

@youking-lib
Copy link

Description:
When using React-Konva library, I noticed an issue where the child components are updated before the parent during updates. This behavior can cause unexpected results and may affect the rendering of the application.

To reproduce the issue, please follow these steps:

Visit the following link: Reproducible Example
Open the browser developer tools.
Wait for the 3s timer to trigger an update.

You will notice that the "renderViewText" log appears before the parent component updates, indicating that the child components are updated ahead of the parent component.

Reproducible Example:
You can find the source code for the issue in the following CodeSandbox project: Source Code

Please investigate this issue and provide a solution or workaround to ensure that the parent component updates before its child components during updates.

Thank you for your attention to this matter.

lavrton added a commit that referenced this issue Jun 3, 2023
@lavrton
Copy link
Member

lavrton commented Jun 3, 2023

Interesting. I added a unit test for that case. It is failing. I am not sure yet how to fix it.

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

2 participants