react/scripts/rollup
Andrew Clark d8e03de4aa
[react-cache] Remove cache as argument to read (#13865)
* [react-cache] Remove `cache` as argument to `read`

Updated is API is `Resource.read(key)` instead of
`Resource.read(cache, key)`.

The cache is read from context using `readContext`.

This also removes cache invalidation entirely (other than the default
LRU mechanism), as well as the ability to have multiple caches. We'll
add it back once `Context.write` lands and we can implement it the
right way.

Since there's now only a single cache (the global one), we don't
actually need to use context yet, but I've added a dummy context
anyway so the user gets an error if they attempt to read outside the
render phase.

* nits

* Add test for thenables that resolve multiple times
2018-10-23 14:38:51 -07:00
..
plugins Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
shims Renamed 4 Internal React Modules 2018-10-11 17:12:31 -07:00
validate Jest + test renderer helpers for concurrent mode (#13751) 2018-10-03 18:37:41 -06:00
build.js Add UMD production+profiling entry points (#13642) 2018-09-13 17:44:08 -07:00
bundles.js [react-cache] Remove cache as argument to read (#13865) 2018-10-23 14:38:51 -07:00
forks.js Rename schedule to scheduler (#13683) 2018-09-19 01:26:28 +01:00
modules.js Rename schedule to scheduler (#13683) 2018-09-19 01:26:28 +01:00
packaging.js Add UMD production+profiling entry points (#13642) 2018-09-13 17:44:08 -07:00
results.json Update bundle sizes for 16.6.0-alpha.8af6728 release 2018-10-10 17:19:00 +01:00
stats.js [Danger] Minor fixes (#12606) 2018-04-11 18:46:02 +01:00
sync.js Fork React Native renderer into FB and OSS bundles (#12625) 2018-04-18 13:16:50 -07:00
utils.js Refactor the build scripts (#11787) 2017-12-06 20:11:32 +00:00
wrappers.js Add UMD production+profiling entry points (#13642) 2018-09-13 17:44:08 -07:00