Skip to content

Setting initialized at the right time #4

Description

@DorKeinath

Does it make sense to replace your

initializeDB().then(() => {
     initializeTables();
     setInitialized(true);
   });
 }, []);

with

initializeDB().then(async () => {
    await initializeTables();
    setInitialized(true);
  });
}, []);

to ensure, that initialized isn't set to early?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions