americanexpress / fetchye

✨ If you know how to use Fetch, you know how to use Fetchye [fetch-yae]. Simple React Hooks, Centralized Cache, Infinitely Extensible.
Apache License 2.0
42 stars 21 forks source link

feat(mapOptionToKey): provide first helper #87

Closed code-forger closed 1 year ago

code-forger commented 1 year ago

Description

Some common use cases for the mapOptionToKey option can be covered by simple helpers

Motivation and Context

Provide simple ways to achieve common patterns.

How Has This Been Tested?

Unit tests

Types of Changes

Checklist:

What is the Impact to Developers Using Fetchye?

Cleaner pattern for achieving this common usecase.

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.