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
Any read operations on data types (e.g. project.observations.getMany() should wait until all available data has been indexed before returning data. This is particularly important on first start of the app with unindexed data.
One way to implement this is to add a dataType.onIndexIdle() function. It should wait for the cores in the dataStore namespace to be ready() first, then wait a tick so that indexing can start, then if the index state is not idle, wait until it is idle. Either that or we should set the initial index state to indexing, and set to idle once the core is ready and we know there is no data.
Tasks
[ ]
The text was updated successfully, but these errors were encountered:
Description
Any read operations on data types (e.g.
project.observations.getMany()
should wait until all available data has been indexed before returning data. This is particularly important on first start of the app with unindexed data.One way to implement this is to add a
dataType.onIndexIdle()
function. It should wait for the cores in the dataStore namespace to beready()
first, then wait a tick so that indexing can start, then if the index state is notidle
, wait until it isidle
. Either that or we should set the initial index state toindexing
, and set to idle once the core is ready and we know there is no data.Tasks
The text was updated successfully, but these errors were encountered: