This file contains hidden or 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
| import { pipe as $, string, preventDefault, blockOn } from 'react-event-pipeline' | |
| function onSubmit(form) { | |
| return $(preventDefault, blockOn(() => form.isSubmittable), onSave(form.serialized)); | |
| } | |
| export default function Settings({ flares, knotsPerFlare, onSave }) { | |
| return ( | |
| <State type={Form} value={{ flares, knotsPerFlare }}> | |
| {form => { |
This file contains hidden or 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
| import { execute, call } from 'effection'; | |
| // One of the things that struck me was that when I was doing the | |
| // implementation for the `enqueue` function in the task constraining | |
| // functions | |
| // (https://gist.github.com/cowboyd/19122da0c59c674cdea86cf6d70e9c75), | |
| // was the eventual form it took. | |
| // | |
| // Like the other task constructors, it returned a function. Let's |
OlderNewer