Fix page change effect being rerun after changes on views (#12869)

`useDefaultHomePagePath` was rerendered each time a view was changed, so
the PageChangeEffect reran every time a view was updated, but we only
want this effect to run on page change.
This commit is contained in:
Raphaël Bosi
2025-06-25 15:09:00 +02:00
committed by GitHub
parent 0f106ab8e0
commit 6450e11f1e
4 changed files with 78 additions and 39 deletions

View File

@ -0,0 +1,6 @@
import { createState } from 'twenty-ui/utilities';
export const arePrefetchViewsLoadedState = createState<boolean>({
key: 'arePrefetchViewsLoadedState',
defaultValue: false,
});