fix initial component mount sometimes displays not found modal
the reason why it happens is known
This commit is contained in:
parent
f3ff4bef03
commit
1b20845ed5
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ export default () => {
|
|||
const { enabled } = useSnapshot(componentActive)
|
||||
const lastModal = useSnapshot(activeModalStack).at(-1)?.reactType
|
||||
|
||||
if (!enabled) return null
|
||||
if (!enabled || watchedModalsFromHooks.value.includes(lastModal!)) return null
|
||||
return <Screen
|
||||
title={`Error: Modal (route) ${lastModal} is is unavailable or doesn't exist`}
|
||||
style={{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue