Clear caches prior to loading to prevent title flashes
This commit is contained in:
@@ -10,6 +10,7 @@ const store = new class AtlasStore {
|
||||
|
||||
@action fetchAtlas = async (id) => {
|
||||
this.isFetching = true;
|
||||
this.atlas = null;
|
||||
|
||||
try {
|
||||
const res = await client.post('/atlases.info', { id: id });
|
||||
|
||||
@@ -12,6 +12,7 @@ const store = new class DocumentSceneStore {
|
||||
|
||||
@action fetchDocument = async (id) => {
|
||||
this.isFetching = true;
|
||||
this.document = null;
|
||||
|
||||
try {
|
||||
const res = await client.post('/documents.info', { id: id });
|
||||
|
||||
Reference in New Issue
Block a user