mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
40b7c19a89
This simply ignores any enqueued actions. This means that we don't have to have special logic for componentWillMount. It is just that those updates are never enqueued.
23 lines
565 B
JavaScript
23 lines
565 B
JavaScript
/**
|
|
* Copyright 2014-2015, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule ReactServerBatchingStrategy
|
|
* @typechecks
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var ReactServerBatchingStrategy = {
|
|
isBatchingUpdates: false,
|
|
batchedUpdates: function(callback) {
|
|
// Don't do anything
|
|
}
|
|
};
|
|
|
|
module.exports = ReactServerBatchingStrategy;
|