americanexpress / fetchye

✨ If you know how to use Fetch, you know how to use Fetchye [fetch-yae]. Simple React Hooks, Centralized Cache, Infinitely Extensible.
Apache License 2.0
41 stars 21 forks source link

fix(reducer): ensure loading state is in sync #14

Closed JAdshead closed 3 years ago

JAdshead commented 3 years ago

If multiple cases of useFetchye with the same key being rendered in the same cycle state would not be updated across these instances. This resulted in multiple fetch calls being made for the same resource.

codesandbox-ci[bot] commented 3 years ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 61ae5cb907024da5ddae0d2d8fb37a39ac0b5db2:

Sandbox Source
americanexpress/fetchye: quick-install Configuration
americanexpress/fetchye: fetchye-provider-install Configuration
americanexpress/fetchye: fetchye-redux-provider-install Configuration
americanexpress/fetchye: fetchye-ssr Configuration
mtomcal commented 3 years ago

:tada: This PR is included in version 1.0.0-beta.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: