fix: Flash of empty state on paginated lists (#3351)

* fix: Flash of empty state on paginated lists
fix: Typing of PaginatedList to generic

* test

* test
This commit is contained in:
Tom Moor
2022-04-09 20:31:51 -07:00
committed by GitHub
parent 9281287dba
commit b7a6a34565
39 changed files with 202 additions and 140 deletions

View File

@@ -1,9 +1,9 @@
import { computed, observable } from "mobx";
import { Role } from "@shared/types";
import BaseModel from "./BaseModel";
import ParanoidModel from "./ParanoidModel";
import Field from "./decorators/Field";
class User extends BaseModel {
class User extends ParanoidModel {
@Field
@observable
id: string;
@@ -34,8 +34,6 @@ class User extends BaseModel {
isSuspended: boolean;
createdAt: string;
@computed
get isInvited(): boolean {
return !this.lastActiveAt;