Commit 8901c7b
authored
fix(plugin-multi-tenant): fix infinite sync tenant network calls (#14604)
Fixes an issue where selecting a tenant, logging out and back in would
cause the network to be cluttered with sync tenant calls. This happened
because the initialValue (initialCookie) for the tenant does not clear
when the user logs out. This PR calls router.refresh on log out so the
initialValue is reset after the cookie is deleted from logging out.1 parent 36f3cad commit 8901c7b
File tree
1 file changed
+2
-1
lines changed- packages/plugin-multi-tenant/src/providers/TenantSelectionProvider
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
0 commit comments