Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Caching #7

Open
kronik opened this issue Dec 19, 2017 · 0 comments
Open

Caching #7

kronik opened this issue Dec 19, 2017 · 0 comments

Comments

@kronik
Copy link

kronik commented Dec 19, 2017

Hey @malcommac,
awesome post, and exploration of networking part. I'm trying to implement cacheable operation and faced with one issue:

  1. I put my cache check and loading code right before I make a network api call
  2. If cache has a valid value then it resolves current promise with this value
  3. But after that when I receive an updated data neither catch nor then are called

Tried to dig inside Promise implementation in Hydra and found that the reason is that in Observer call method it falls into a default case and does nothing.

What I'm doing wrong and what do you think might be the right way?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant