You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, users need to call init by their own and could not make any query before init. Not put init into constructor just because TypeScript not support async constructor.
But actually we can call init in constructor and check inited flag in query so that query will be the only public API that can be used, and since query is async function already, it can use waitFor function to check the inited flag.
The text was updated successfully, but these errors were encountered:
Now, users need to call
init
by their own and could not make any query before init. Not putinit
into constructor just because TypeScript not support async constructor.But actually we can call
init
in constructor and check inited flag in query so thatquery
will be the only public API that can be used, and sincequery
is async function already, it can usewaitFor
function to check the inited flag.The text was updated successfully, but these errors were encountered: