data icon indicating copy to clipboard operation
data copied to clipboard

feat: request deduping & <Request /> invalidate subscriptions

Open runspired opened this issue 7 months ago • 0 comments

Follow up from https://github.com/emberjs/data/pull/9363

  • [x] dedupe requests: before if multiple requests required bypassing cache/fulfilling from handler chain each would run in its entirely. This primarily negatively affected first-load scenarios / thundering-herd reload scenarios. Now requests with a unique identifier will only maintain one active-request per-id per-store at a time.
  • [x] invalidate subscription: we've added a new invalidate event to the notification manager, and upgraded the CachePolicy provided by request-utils to send this event / upgraded <Request /> to subscribe to this event
  • [ ] time based refresh on <Request />
  • [ ] invalidate event based refresh on <Request />
  • [ ] background reload subscriptions on <Request />
  • [ ] reload subscriptions on <Request />

runspired avatar Jun 29 '24 01:06 runspired