fix: excessive autorun calls
This commit is contained in:
@@ -5,7 +5,9 @@ import { AppState } from '@/ui_models/app_state';
|
||||
type Props = { appState: AppState };
|
||||
|
||||
function NoAccountWarning({ appState }: Props) {
|
||||
const canShow = useAutorunValue(() => appState.noAccountWarning.show);
|
||||
const canShow = useAutorunValue(() => appState.noAccountWarning.show, [
|
||||
appState,
|
||||
]);
|
||||
if (!canShow) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user