TP-65182 | App slowness fix
This commit is contained in:
@@ -80,19 +80,13 @@ const TrackingComponent: React.FC<ITrackingComponent> = ({ children }) => {
|
||||
const isOnline = useIsOnline();
|
||||
const dispatch = useAppDispatch();
|
||||
const appState = useRef(AppState.currentState);
|
||||
const {
|
||||
isTeamLead,
|
||||
caseSyncLock,
|
||||
referenceId,
|
||||
pendingList = [],
|
||||
pinnedList = [],
|
||||
} = useAppSelector((state) => ({
|
||||
isTeamLead: state.user.isTeamLead,
|
||||
caseSyncLock: state?.user?.caseSyncLock,
|
||||
referenceId: state.user.user?.referenceId!,
|
||||
pendingList: state.allCases.pendingList,
|
||||
pinnedList: state.allCases.pinnedList,
|
||||
}));
|
||||
|
||||
const isTeamLead = useAppSelector((state) => state.user.isTeamLead);
|
||||
const caseSyncLock = useAppSelector((state) => state?.user?.caseSyncLock);
|
||||
const referenceId = useAppSelector((state) => state.user.user?.referenceId!);
|
||||
const pendingList = useAppSelector((state) => state.allCases.pendingList);
|
||||
const pinnedList = useAppSelector((state) => state.allCases.pinnedList);
|
||||
|
||||
|
||||
const handleTimeSync = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user