-
Notifications
You must be signed in to change notification settings - Fork 4
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
Re-Frame accepts nil in :dispatch-n vector but re-frame-flow fails to handle it and throws errors. #2
Comments
Thanks for reaching out @CalebMacdonaldBlack. What is the exact error are you getting? Also, could you send your code snippet that causes the error? I tried passing nil to (reg-event-fx
::call-some-stuff
(fn [{:keys [db]} _]
{:dispatch-n nil})) Also, the code ignores if the So |
Hi @ertugrulcetin. I love your project! Thank you for making it. the dispatch-n takes a vector. Run this and you should see the error in your console: (rf/reg-event-fx
:foo
(fn [_ _]
{:dispatch-n [nil]}))
(rf/dispatch [:foo]) Here's the stack trace though:
The event key is nil and |
@CalebMacdonaldBlack thank you for the detailed explanation. I fixed it and released a new version |
I can pass
nil
into:dispatch-n
fx vector successfully with re-frame but re-frame-flow fails to deal with thishttps://github.com/day8/re-frame/blob/ecb756e66fe30efca896879369a420df1e271605/src/re_frame/fx.cljc#L147
I get errors because of a
nil
id
param being passed intothese two re-frame-flow.core
functions:The text was updated successfully, but these errors were encountered: