Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acemarke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
301.
▲
by
acemarke
5y ago
Not specifically. The general problem we were running into is: - We recommend inferring `type RootState = ReturnType<typeof store.getState>` - That type comes from the slice reducers - Thunks need a `State` type passed in so they know
302.
▲
by
acemarke
5y ago
Anything particular you didn't like about that? FWIW we'd _like_ to add the ability to define thunks inside of `createSlice`, but there's TS type circularity issues we've been unable to solve, so that's kept us from
303.
▲
by
acemarke
5y ago
Mobx and Redux Toolkit have some relatively similar capabilities. It largely depends on whether you prefer FP-style code and explicit logic (Redux), or OOP-style code and implicit update behavior (Mobx). Any particular aspects of Mobx you f
304.
▲
by
acemarke
5y ago
The prototype "React Forget" compiler may hopefully solve that use case: - https://youtu.be/lGEMwh32soc - https://www.reddit.com/r/reactjs/comments/rcn5ks/react_forge...
305.
▲
by
acemarke
5y ago
Yes. React re-renders components recursively by default. So, any state update in a parent component will recurse through and render all child components. But, a "render" does not necessarily imply a "DOM update" - it&#
306.
▲
by
acemarke
5y ago
FWIW, our official Redux Toolkit package solved the "boilerplate" concerns, including our new RTK Query data fetching API. If you're happy with Vue, great! If you do get a chance, though, please take a look at the Redux docs
307.
▲
by
acemarke
5y ago
Awesome! Glad this is finally out, and really looking forward to seeing what features the React team adds in follow-up releases. The Working Group model really helped us in the community give feedback - APIs like `useSyncExternalStore` wou
308.
▲
by
acemarke
5y ago
Enzyme has been lagging in support for React features for several years now, so yes, I would expect it would not correctly support React 18 right away. (Note that both Enzyme and React Testing Library are independent of what test runner yo
309.
▲
by
acemarke
5y ago
Andrew Clark suggested recently that chunks of the event system may be removed in the next major: https://twitter.com/acdlite/status/1505378980878331909
310.
▲
by
acemarke
5y ago
Thank you, glad to hear that our React-Redux hooks are useful! And yes, the fact that the hooks work so much better with TS than `connect` was one of the major reasons why we now recommend the hooks API as the default.
311.
▲
by
acemarke
5y ago
Are you asking more about how hooks work internally, how to use them, or why they're designed this way? I'd suggest reading these couple articles to understand more about the "how they work" and "how they're de
312.
▲
by
acemarke
5y ago
Agreed that the actual implementation of hooks is _relatively_ "simple" internally. I strongly recommend Shawn Wang's talk/post "Getting Closure on Hooks" [0] as a good dive into the implementation approach. Th
313.
▲
by
acemarke
5y ago
Thanks for the feedback, and glad to hear it's working well overall! There's definitely been some prior requests for some additional functionality around `createEntityAdapter`. We tried to keep the original implementation fairly
314.
▲
by
acemarke
5y ago
Looks very nice! I see you're using Redux Toolkit and TypeScript, including some fairly heavy use of `createEntityAdapter`. Any feedback on using RTK? We're always interested in hearing how RTK is working for our users. A couple
315.
▲
by
acemarke
5y ago
Yep, I can vouch for this. I work on the Redux JS libraries, entirely volunteer. I spend a _lot_ of time maintaining them, but I'm mostly able to do that because I can _choose_ to do that work when I feel like it, with no outside pre
316.
▲
by
acemarke
5y ago
The Quest 2 works as-is - you can mod it. See these resources: - Quest dev mode instructions: https://uploadvr.com/sideloading-quest-how-to/ - BeatSaber custom modding instructions: https://bsaber.com/
317.
▲
by
acemarke
5y ago
We use Docusaurus for the Redux org doc sites like https://redux.js.org , and love it: https://docusaurus.io/
318.
▲
by
acemarke
5y ago
If you're doing any front-end dev work, take a look at https://replay.io . It's a true "time-traveling debugger": load your app in their custom browser, record yourself using the app (and reproducing a bug),
319.
▲
by
acemarke
5y ago
I suspect you're looking for https://github.com/Wisser/Jailer . (I'd seen it before as well, couldn't remember the name immediately, and googled for `sql database subset relation export tool` to find it
320.
▲
by
acemarke
5y ago
FWIW my experience is that Yarn 2/3 work great, as long as you stick with the `node_modules` linker (which works the same way Yarn 1 and NPM always have, by extracting all packages to disk) instead of the "Plug 'n Play"
321.
▲
by
acemarke
5y ago
Yeah, I've long been a fan of rewriting my feature branches to clean them up before pushing. I wrote an extensive blog post last year describing useful Git techniques and usage patterns [0], and I tried to emphasize that as a key poin
322.
▲
by
acemarke
5y ago
Yes! I have a blog series that I wrote, entitled "How Web Apps Work". It covers a variety of aspects of web dev, but with a particular focus on the client side. I specifically wrote it to help devs with Java/C++ experience g
323.
▲
by
acemarke
5y ago
As a maintainer for Redux, Redux Toolkit, and React-Redux, I can tell you that we would _love_ to have several additional features in TS that would make our library TS types much easier to maintain. Like, say, partially specified generics.
324.
▲
by
acemarke
5y ago
Hey, I wrote that docs page back in 2016 :) I'd been using an early version of Redux-ORM on a project, there were some Redux repo discussion threads about this problem space, and it seemed like something that was worth documenting. We
325.
▲
by
acemarke
5y ago
I've been keeping a daily work journal since 2013 [0]. Just some daily notes in Markdown files about what I worked on, who I talked to, problems solved, stuff to remember, what I should pick up with tomorrow. (Currently just using VS
326.
▲
by
acemarke
5y ago
Because the `/pages/api` folder _lets_ you create a backend, very similar to any other web app server (ie, Express). You are not _required_ to use that feature, but if you choose to use it, _that_ is where you'd do all your s
327.
▲
by
acemarke
5y ago
Very nice! This is a good recap writeup. I got a sense of what your experience is like, and I think you did a solid job of describing what you were working on without stepping over the line into proprietary details. Seems like you had a nea
328.
▲
by
acemarke
5y ago
As a first suggestion, you might want to read through my "How Web Apps Work" blog series, which covers many key web dev terms, concepts, and technologies: https://blog.isquaredsoftware.com/series/how-web-apps-
329.
▲
by
acemarke
5y ago
I'm pretty sure you're thinking of https://open-props.style/ .
330.
▲
by
acemarke
5y ago
Oh neat. What actual React code changes were needed for compatibility?
More ›