You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also: is it a good practice to define functions like Task.delete, or would it be better off as a closure?
If it's better used as a closure, how do you define such a closure in this context?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if this is a really trivial question, but I'm wondering how can I call an instance method on a composed function.
Specifically, I'm looking to use the Publisher.fireAndForget instance method to initiate a database (GRDB) call in a reducer.
I have a hunch that the solution requires defining a free function but am unable to define it correctly.
Also: is it a good practice to define functions like Task.delete, or would it be better off as a closure?
If it's better used as a closure, how do you define such a closure in this context?
Beta Was this translation helpful? Give feedback.
All reactions