Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 12 Mar 17:52
· 9 commits to master since this release
69ae187

Patch Changes

  • #3417 a6af54c Thanks @ntucker! - Update getOptimisticResponse snapshot types to include getResponseMeta

  • #3407 d84899d Thanks @ntucker! - Support dynamic invalidation/deletes

    Returning undefined from Entity.process
    will cause the Entity to be invalidated.
    This this allows us to invalidate dynamically; based on the particular response data.

    class PriceLevel extends Entity {
      price = 0;
      amount = 0;
    
      pk() {
        return this.price;
      }
    
      static process(
        input: [number, number],
        parent: any,
        key: string | undefined,
      ): any {
        const [price, amount] = input;
        if (amount === 0) return undefined;
        return { price, amount };
      }
    }
  • Updated dependencies [a6af54c, d84899d]: