Builds a function to capture BackgroundManagerNotOpenError
's to produce friendlier,
more instructive errors for customers.
The name of the operation (usually a Datastore method) the customer tried to call.
If not already done:
this.amplifyConfig.aws_appsync_graphqlEndpoint
contains a URL,
attaches a sync engine, starts it, and subscribes.Stops all DataStore sync activities.
TODO: "Waits for graceful termination of running queries and terminates subscriptions."
Clears all data from storage and removes all data, schema info, other initialization details, and then stops DataStore.
That said, reinitialization is required after clearing. This can be done by explicitiliy calling
start()
or any method that implicitly starts DataStore, such asquery()
,save()
, ordelete()
.