Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
U
urql
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • urql
  • Repository

Switch branch/tag
  • urql
  • exchanges
  • request-policy
  • src
  • requestPolicyExchange.ts
Find file
BlameHistoryPermalink
  • Malcolm's avatar
    (request-policy) - Fix requestPolicyExchange usage with persisted caching (#1742) · 616ac76c
    Malcolm authored Jul 01, 2021
    * Ignore files generated by JetBrains IDEs like Intellij
    
    * (request-policy) - Fix TTL being set on cache hits
    
    Do not set the TTL unless cache outcome is "miss". If the first result
    to come through the requestPolicyExchange was a cache-hit then the ttl was incorrectly
    set initially based on this cache hit and no network request was made. This happens when using
    persisted caching with the graphcache exchange since the very first result can be a cache hit.
    
    https://github.com/FormidableLabs/urql/issues/1644
    
    * Add changeset
    616ac76c
requestPolicyExchange.ts 1.5 KB
EditWeb IDE

Replace requestPolicyExchange.ts

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.