react/packages/react-data/npm/fetch.js
Dan Abramov 515326753b
[Blocks] Initial implementation of cache and data/fetch (#18774)
* Rename ReactCache -> ReactCacheOld

We still use it in some tests so I'm going to leave it for now. I'll start making the new one in parallel in the react package.

* Add react/unstable-cache entry point

* Add react-data entry point

* Initial implementation of cache and data/fetch

* Address review
2020-04-29 19:14:15 +01:00

8 lines
212 B
JavaScript

'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-data-fetch.production.min.js');
} else {
module.exports = require('./cjs/react-data-fetch.development.js');
}