dillon1000/react

Commit

createResource returns an object with methods instead of a read function (#12304)

Changes `createResource` to return an object with `read` and `preload`
methods. Future methods may include `set`, `subscribe`, `invalidate`,
and so on.
Browse files
Changed paths2 files
First-parent comparison
M packages/simple-cache-provider/src/SimpleCacheProvider.js ModifiedM packages/simple-cache-provider/src/__tests__/SimpleCacheProvider-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…