ux(portal): evitar flash de estado vazio antes de carregar tickets
This commit is contained in:
parent
b2de4b8480
commit
2468892d77
1 changed files with 7 additions and 1 deletions
|
|
@ -145,7 +145,13 @@ export function PortalTicketList() {
|
|||
setFilters(defaultPortalTicketFilters)
|
||||
}
|
||||
|
||||
const isLoading = Boolean(authLoading || machineContextLoading || (viewerId && ticketsRaw === undefined))
|
||||
const hasAuthContext = Boolean(session || machineContext)
|
||||
const isLoading = Boolean(
|
||||
authLoading ||
|
||||
machineContextLoading ||
|
||||
(hasAuthContext && !viewerId) ||
|
||||
(viewerId && ticketsRaw === undefined)
|
||||
)
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue