aws / graph-explorer

React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
https://github.com/aws/graph-explorer
Apache License 2.0
305 stars 46 forks source link

Update React Query v3 to TanStack Query v5 #360

Closed kmcginnes closed 2 months ago

kmcginnes commented 2 months ago

Updates the app to use TanStack Query v5 instead of React Query v3.

There were a decent number of breaking changes in these versions. Luckily, our app doesn't use React Query extensively, so there were only a few areas that needed close attention.

Discovered Bug

I also noticed and fixed a bug related to the vertex count logic. If you start on the connections screen and do a fresh sync you'll see the total node & edge counts. Then go in to one of the node types in the data explorer. When you come back to the connection screen the total counts are zeroed out.

This issue existed before the changes in this PR. But I fixed it anyway.

Validation

Related Issues

Check List