-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear purpose of StoreResponse.NoNewData #219
Comments
Good call out, the doc can use some adjusting. Here's the issue that lead to the new event. I'll link it in a comment as well #185 |
I've read that issue, and I understand the problem, but I think the solution of the PR that was merged after is a bit rough. These are the two following points that I think should be given a reconsideration (especially now since we are still in alpha): First of all, Then second, most importantly; adding
|
Thanks for engaging with us on how to improve the API!
This is indeed unfortunate, but I wanted to minimized the changes to the API and thus decided to leave this in place. For reference
We discussed this issue but decided that With that said we probably need to update the API to clarify when |
In order to keep the API simple for non flow fetchers but tackle the known issue for Flow fetchers, we could perhaps do one of the following:
|
On a seperate note: is there a usecase where a flow from an api is empty? It sounds like something one shouldn't have to begin with and an edge cases that has no purpose with a Store/Repository. |
see #230 for a proposal to simplify the API |
#230 was closed as it changes the paradigm from events to state. I agree that the current solution is not ideal for the reasons @OrhanTozan mentioned. I think we need an internal StoreResponse type that is only used within the store internals rather that emitted to users. Open to other suggestions. Will assign to myself and take on in few weeks unless someone has a better idea for a fix. |
What does it mean when a Store emits StoreResponse.NoNewData?
Documentation says only the following:
How is it possible for a Fetcher not to return data?
Taking an example from the readme:
when would this Store return a
StoreResponse.NoNewData
?The text was updated successfully, but these errors were encountered: