Skip to content

Conversation

@ValeraS
Copy link
Collaborator

@ValeraS ValeraS commented Apr 18, 2024

No description provided.

@ValeraS ValeraS requested a review from Raubzeug April 18, 2024 14:48
Raubzeug
Raubzeug previously approved these changes Apr 19, 2024
});

const {Name} = cluster;
const clusterError = error && typeof error === 'object' ? error : undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it possible to make types for error on RTQ level so it wouldn't be unknown?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's possible, but error is really unknown)

useAutofetcher(() => dispatch(getClusterNodes()), [dispatch], true);
const {data: nodes = [], isLoading: isNodesLoading} = clusterNodesApi.useGetClusterNodesQuery(
undefined,
{pollingInterval: 30_000},
Copy link
Contributor

Choose a reason for hiding this comment

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

DEFAULT_POLLING_INTERVAL?

@ValeraS ValeraS merged commit 876510c into main Apr 22, 2024
@ValeraS ValeraS deleted the feat/rtk-query branch April 22, 2024 08:15
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

Successfully merging this pull request may close these issues.

3 participants