diff --git a/scripts/error-codes/codes.json b/scripts/error-codes/codes.json index 9d7e85362360f..f6f6067b45f93 100644 --- a/scripts/error-codes/codes.json +++ b/scripts/error-codes/codes.json @@ -124,7 +124,7 @@ "122": "%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", "123": "ReactUpdates: must inject a reconcile transaction class and batching strategy", "124": "Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).", - "125": "ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched.", + "125": "ReactUpdates.asap: Can't enqueue an asap callback in a context where updates are not being batched.", "126": "ReactUpdates: must provide a reconcile transaction class", "127": "ReactUpdates: must provide a batching strategy", "128": "ReactUpdates: must provide a batchedUpdates() function", diff --git a/src/renderers/shared/stack/reconciler/ReactUpdates.js b/src/renderers/shared/stack/reconciler/ReactUpdates.js index 643b4ea426c5e..84084a2e8366a 100644 --- a/src/renderers/shared/stack/reconciler/ReactUpdates.js +++ b/src/renderers/shared/stack/reconciler/ReactUpdates.js @@ -241,7 +241,7 @@ function enqueueUpdate(component) { function asap(callback, context) { invariant( batchingStrategy.isBatchingUpdates, - 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context where' + + 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context where ' + 'updates are not being batched.' ); asapCallbackQueue.enqueue(callback, context);