ngneat / elf

🧙‍♀️ A Reactive Store with Magical Powers
https://ngneat.github.io/elf/
MIT License
1.62k stars 93 forks source link

@ngneat/elf-requests does not support removing a single request cache by key. #515

Closed HeathJared closed 7 months ago

HeathJared commented 8 months ago

Which @ngneat/elf-* package(s) are relevant/releated to the feature request?

No response

Description

The package @ngneat/elf-requests provides a function clearRequestsCache, but this function does not support passing in a key as the argument.

Proposed solution

Add a new operator deleteRequestsCache(key: CacheRecordKeys<S>) to delete an individual cache from the store by key.

Alternatives considered

Add an overload clearRequestsCache to provide the same functionality described above.

Do you want to create a pull request?

No

VasilyShelkov commented 2 months ago

Am I right in thinking this never made it to the released elf-requests package ?