react/packages/react-noop-renderer
Sunil Pai a1dbb852c2 warn if you try to use act() in prod (#16282)
We have behaviour divergence for act() between prod and dev (specifically, act() + concurrent mode does not flush fallbacks in prod. This doesn't affect anyone in OSS yet)

We also don't have a good story for writing tests in prod (and what from what I gather, nobody really writes tests in prod mode).

We could have wiped out act() in prod builds, except that _we_ ourselves use act() for our tests when we run them in prod mode.

This PR is a compromise to all of this. We will log a warning if you try to use act() in prod mode, and we silence it in our test suites.
2019-08-05 13:01:05 -07:00
..
npm [Fizz] New Server Rendering Infra (#14144) 2018-11-30 11:38:22 -08:00
src warn if you try to use act() in prod (#16282) 2019-08-05 13:01:05 -07:00
README.md Add Fiber Debugger (#8033) 2016-10-25 08:36:37 +01:00
index.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
package.json Add directory details to the package.json of all packages (#14628) 2019-01-18 20:21:12 +00:00
persistent.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
server.js [Fizz] New Server Rendering Infra (#14144) 2018-11-30 11:38:22 -08:00

README.md

react-noop-renderer

This package is the renderer we use for debugging Fiber. It is not intended to be used directly.