[dev] Add ability to check folderManager state (#3955)
This commit is contained in:
parent
0f32f1e382
commit
e59b002b5f
@ -90,6 +90,13 @@ let callbacks: {
|
|||||||
unreadCountersByFolderId: CallbackManager;
|
unreadCountersByFolderId: CallbackManager;
|
||||||
} = initials.callbacks;
|
} = initials.callbacks;
|
||||||
|
|
||||||
|
if (DEBUG) {
|
||||||
|
(window as any).DEBUG_getFolderManager = () => ({
|
||||||
|
prepared,
|
||||||
|
results,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const updateFolderManagerThrottled = throttle(() => {
|
const updateFolderManagerThrottled = throttle(() => {
|
||||||
onIdle(() => {
|
onIdle(() => {
|
||||||
updateFolderManager(getGlobal());
|
updateFolderManager(getGlobal());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user