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

render three times #158

Closed
Liripo opened this issue Sep 19, 2023 · 2 comments
Closed

render three times #158

Liripo opened this issue Sep 19, 2023 · 2 comments

Comments

@Liripo
Copy link

Liripo commented Sep 19, 2023

Use_async as a template for development and initialize rendering three times.
image

image

I transferred the simple sample repository code to Google Drive.

@alexcjohnson
Copy link
Collaborator

This is typical, there should be different props each time - once with its initial state, a second time with a loading_state when the callback has been queued, and the final time with the callback result.

We could probably find a way to skip loading_state when your component isn't using it but the other two are required since you have the component hooked up to a callback and you're not using prevent_initial_call=True.

@Liripo
Copy link
Author

Liripo commented Sep 23, 2023

Thank you.

@Liripo Liripo closed this as completed Sep 23, 2023
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