-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
fix: show loading component state while images arent fully loaded #2609
Conversation
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 09 Jul 24 18:13 UTC |
…process data on the server side ♻️ (ProfilePictureForm): simplify state management by removing redundant loading state
…low-ai/langflow into cz/fix-profile-img-loading
…rofilePicturesQueryResponse for clarity ♻️ (use-preload-images.tsx): add loading check to useEffect to prevent unnecessary execution ♻️ (profilePictureChooserComponent): update profilePictures prop type to handle undefined and add loading to usePreloadImages ♻️ (ProfilePictureForm): remove unnecessary state and use response directly from useGetProfilePicturesQuery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…fect dependency array to ensure images are preloaded correctly
…ngflow-ai#2609) * ✨ (ProfilePictureForm): add loading state to handle initial loading state * ♻️ (use-get-profile-pictures.ts): refactor profile pictures query to process data on the server side ♻️ (ProfilePictureForm): simplify state management by removing redundant loading state * ♻️ (use-get-profile-pictures.ts): rename ProfilePicturesResponse to ProfilePicturesQueryResponse for clarity ♻️ (use-preload-images.tsx): add loading check to useEffect to prevent unnecessary execution ♻️ (profilePictureChooserComponent): update profilePictures prop type to handle undefined and add loading to usePreloadImages ♻️ (ProfilePictureForm): remove unnecessary state and use response directly from useGetProfilePicturesQuery * 🐛 (use-preload-images.tsx): add missing dependency 'loading' to useEffect dependency array to ensure images are preloaded correctly (cherry picked from commit 7174e6e)
✨ (ProfilePictureForm): add loading state to handle initial loading state