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

fix: refactor get all to fix types not being fetched before checking for outdated components #4762

Merged
merged 9 commits into from
Nov 22, 2024

Conversation

lucaseduoli
Copy link
Collaborator

This pull request involves significant changes to the FlowMenu and related components to improve the handling of types and data fetching. The most important changes include the removal of the useTypesStore in favor of useQueryClient, the introduction of a new useGetTypes hook, and updates to the AppInitPage to ensure proper data loading.

Changes to data fetching and state management:

Updates to initialization and loading logic:

Removal of redundant useTypesStore calls:

These changes streamline the data fetching process and ensure that the application state is managed more efficiently.

@lucaseduoli lucaseduoli self-assigned this Nov 21, 2024
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 21, 2024
@github-actions github-actions bot added the bug Something isn't working label Nov 21, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 21, 2024
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 21, 2024
Copy link
Member

@Cristhianzl Cristhianzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 21, 2024
@ogabrielluiz ogabrielluiz merged commit b1a552f into main Nov 22, 2024
18 checks passed
@ogabrielluiz ogabrielluiz deleted the fix/get_all branch November 22, 2024 01:01
mieslep pushed a commit to mieslep/langflow that referenced this pull request Nov 22, 2024
…for outdated components (langflow-ai#4762)

* Added use get types to fetch types from backend using tanstack

* Updated typesStore to use new set types

* Updated project to not use getTypes anymore

* deleted unused getTypes

* add tests

* [autofix.ci] apply automated fixes

* fix tests

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…for outdated components (langflow-ai#4762)

* Added use get types to fetch types from backend using tanstack

* Updated typesStore to use new set types

* Updated project to not use getTypes anymore

* deleted unused getTypes

* add tests

* [autofix.ci] apply automated fixes

* fix tests

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants