-
-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass a single arg to :output and :live?
We couldn't think of a use-case for passing in the old output value as a separate arg. Same for passing the db to the live function. If no inputs are declared, then we pass the entire app-db instead. That means we can do really concise flows, like: {:id :bedroom-area :output (fn [{{:keys [width height]} :bedroom :as db}] (* width height))}
- Loading branch information
Showing
2 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters