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

Caching #7

@kronik

Description

@kronik

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions