We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3124bdb commit 3bd1e5dCopy full SHA for 3bd1e5d
src/containers/Tenant/Tenant.tsx
@@ -94,10 +94,11 @@ function Tenant(props: TenantProps) {
94
}, [tenantName, dispatch]);
95
96
React.useEffect(() => {
97
- if (currentSchemaPath) {
+ //TODO: should be refactored when move to @reduxjs/toolkit/query
98
+ if (currentSchemaPath && currentSchemaPath !== tenantName) {
99
dispatch(getSchema({path: currentSchemaPath}));
100
}
- }, [currentSchemaPath, dispatch]);
101
+ }, [currentSchemaPath, dispatch, tenantName]);
102
103
104
if (tenantName) {
0 commit comments