Daniel Nixon
Daniel Nixon
An opinionated form library, TypeScript + React Final Form + io-ts for validation. https://github.com/oaf-project/oaf-react-final-form
In case they're useful, here are parallel conversations happening in Vue and React land: * https://github.com/vuejs/vue-router/issues/2488 * https://github.com/ReactTraining/react-router/issues/5210 * https://github.com/zeit/next.js/issues/7681
@SteveALee I would tread very carefully with `autofocus`. See e.g. https://webaim.org/blog/future-web-accessibility-html5-input-extensions/ ETA: Back in the dark ages of server-rendered apps, it would have been possible for a user agent to...
Bootstrap 4 is not _entirely_ without accessibility issues. See e.g. https://github.com/oaf-project/oaf-bootstrap-4
If I understand correctly, you can achieve this with `take` as-is by providing a type argument: ```ts // All your app's action types type FooAction = { type: "FOO" };...
Ah, you'll have to do something like: ```ts const myTake = (pattern: A["type"] | A["type"][]) => take(pattern); ```
I'd be happy to explore improving the ergonomics of this. I can imagine this package providing something like: ```ts const { take, ... } = typedEffects(); yield* take("FOO"); // returns...
I'm experimenting with this in the https://github.com/agiledigital/typed-redux-saga/tree/effects-for-action-type branch
@gilbsgilbs another one for you to ponder ☝️
If we ignore the function and array forms, something like this is what I'm doing (where `MyAppActionType` is the union of all my app's action types): ```typescript import { take...