Skip to content

Add first-load tracking attributes to `makeGetMixin`

Compare
Choose a tag to compare
@marshallswain marshallswain released this 16 Nov 19:41
· 601 commits to master since this release

The makeFindMixin already included data for first-load tracking. For example, a videos service has two boolean attributes: haveVideosBeenRequestedOnce and haveVideosLoadedOnce. This adds feature parity for the makeGetMixin and adds the following attributes:

  • has${capitalizedResource}BeenRequestedOnce
  • has${capitalizedResource}LoadedOnce

These attributes can now be used to track first-load scenarios in the makeGetMixin.