(no title)
xab9 | 7 years ago
Heck, I already have huge livetemplates in my ide to generate most of these stuff, but it feels wrong. And while we have fun writing "enterprise quality code", routing falls apart, load indicators are missing, form validators are a mess, error handling is broken, etc.
acemarke|7 years ago
We're currently working on a package called `redux-starter-kit` that contains some utilities to help simplify common concerns about Redux, including store setup, generating action creators, and writing reducer logic and immutable updates:
https://github.com/reduxjs/redux-starter-kit
I'd appreciate it if you could take a look, try it out, and give us some feedback.
It's currently JS-only, but we're planning to convert it to be written in TS in the near future.
As for as Redux and TS in general... I know I've seen comments similar to yours ("duplicating action constants and enums", etc). Unfortunately, I don't use TS myself, and don't know enough to offer meaningful suggestions there.
If you've got specific pain points with Redux and TS, please go ahead and file an issue for discussion, and perhaps we can work on some solutions.
zawerf|7 years ago
It can be used on top of redux but it won't really look like redux code anymore. But since you're using immer in the starter, it wasn't going to look like redux anyway (e.g., ton of triple dots everywhere).
Do you have any opinion on mobx-state-tree? Maybe you should just bless mobx-state-tree in the starter too? (immer is built by the same mobx guy)
[1] https://github.com/mobxjs/mobx-state-tree
(I have not actually use the library yet. Secretly hoping you'll will tell me about all the cons so I don't have to do the research myself. Currently choosing a library based on which has the best saga-like support)
unknown|7 years ago
[deleted]
SilverSlash|7 years ago
I was wondering, would it be possible to have something like a strict subset of redux with minimal boilerplate and very few and very simple API functions which are redux compatible. But which can eventually be swapped with the full Redux library if need be?
xab9|7 years ago
I really loved working with angular-cli, where you can create most of the skeletons with the cli tool (which in turn is supported by webstorm).
Yuioup|7 years ago
morganics|7 years ago
xab9|7 years ago
ryan-allen|7 years ago
flyingswift|7 years ago
Also, I am working on a library which aims to centralize all of the redux constructs into reusable modules. It doesn't eliminate all if the boilerplate, but I think it makes it easier to add things to the store. https://redux-dynamic-modules.js.org
scns|7 years ago
fastball|7 years ago
0: https://rematch.gitbooks.io/rematch/
fouc|7 years ago
xab9|7 years ago