UNPKG

rn-web-cli

Version:

React Native for Web

1 lines 1.97 kB
{"version":3,"sources":["node_modules\\react-dom\\lib\\ReactInvalidSetStateWarningHook.js"],"names":["warning","require","process","env","NODE_ENV","processingChildContext","warnInvalidSetState","ReactInvalidSetStateWarningHook","onBeginProcessingChildContext","onEndProcessingChildContext","onSetState","module","exports"],"mappings":";;;;;;;;;;;AAWA;;AAEA,GAAIA,SAAUC,QAAQ,kBAAR,CAAd;;AAEA,GAAIC,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAA7B,CAA2C;AACzC,GAAIC,wBAAyB,KAA7B;;AAEA,GAAIC,qBAAsB,QAAtBA,oBAAsB,EAAY;AACpCJ,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCJ,QAAQ,CAACK,sBAAT,CAAiC,gEAAjC,CAAxC,CAA6I,IAAK,EAAlJ;AACD,CAFD;AAGD;;AAED,GAAIE,iCAAkC;AACpCC,8BAA+B,wCAAY;AACzCH,uBAAyB,IAAzB;AACD,CAHmC;AAIpCI,4BAA6B,sCAAY;AACvCJ,uBAAyB,KAAzB;AACD,CANmC;AAOpCK,WAAY,qBAAY;AACtBJ;AACD,CATmC,CAAtC;;;AAYAK,OAAOC,OAAP,CAAiBL,+BAAjB","file":"ReactInvalidSetStateWarningHook.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar warning = require('fbjs/lib/warning');\n\nif (process.env.NODE_ENV !== 'production') {\n var processingChildContext = false;\n\n var warnInvalidSetState = function () {\n process.env.NODE_ENV !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;\n };\n}\n\nvar ReactInvalidSetStateWarningHook = {\n onBeginProcessingChildContext: function () {\n processingChildContext = true;\n },\n onEndProcessingChildContext: function () {\n processingChildContext = false;\n },\n onSetState: function () {\n warnInvalidSetState();\n }\n};\n\nmodule.exports = ReactInvalidSetStateWarningHook;"]}