Files
react/packages/shared/ReactTypeOfSideEffect.js
Dan Abramov 45c1ff348e Remove unnecessary 'use strict' in the source (#11433)
* Remove use strict from ES modules

* Delete unused file

This was unused since Stack.
2017-11-02 20:32:48 +00:00

25 lines
824 B
JavaScript

/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
export type TypeOfSideEffect = number;
// Don't change these two values:
export const NoEffect = 0; // 0b00000000
export const PerformedWork = 1; // 0b00000001
// You can change the rest (and add more).
export const Placement = 2; // 0b00000010
export const Update = 4; // 0b00000100
export const PlacementAndUpdate = 6; // 0b00000110
export const Deletion = 8; // 0b00001000
export const ContentReset = 16; // 0b00010000
export const Callback = 32; // 0b00100000
export const Err = 64; // 0b01000000
export const Ref = 128; // 0b10000000