Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phryneas
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
phryneas
6mo ago
Isn't that equal to just returning `{ typename: "MyTypeName", id: 123 }` from a resolver and then `graphql-js` just running the field resolvers on the `MyTypeName` type as needed? Or is this doing more?
2.
▲
by
phryneas
11mo ago
I'm an engineer on the client team, so I'm a bit fuzzy on the Apollo Server details and history, so please bear with me :) I guess you're talking about [Safelisting Persisted Queries]( https://www.apollographql.com&
3.
▲
by
phryneas
11mo ago
Huh, that's an interesting take - honestly I don't really know what to do about that :/ It's definitely not our intention to send that message - Apollo Client should be a good fit for everybody. The biggest adoption hu
4.
▲
by
phryneas
11mo ago
Hi there, Apollo Client maintainer here! Great to see more GraphQL projects sprouting out there :) If I may ask, are there any things that are currently missing in Apollo Client to be a good match for Svelte or SolidJS? If there are things
5.
▲
by
phryneas
3y ago
You can just call the `cookies()` or `headers()` function in every server component in the app router?
6.
▲
by
phryneas
3y ago
API routes are nothing new, and not a big part of the new App router (also, called "route handlers" there). Are you confusing features here?
7.
▲
by
phryneas
4y ago
Hi, RTK Query author here - from taking a skim at the code, you really went deep into our documentation. Looks good! :) Many people here tell you "study", others tell you "don't". Both is okay. In Germany, you pro
8.
▲
by
phryneas
6y ago
It doesn't seem verbose to me. Have you looked into those docs above? You define a reducer and an action creator is automatically generated. String action types are an implementation detail. No manual immutable state modification, as i
9.
▲
by
phryneas
6y ago
With a lot of hand-written boilerplate, many required manual optimizations and performance that will in the best case be equal but often doesn't even get close. Context cannot rerender selectively. You change one property in a context
10.
▲
by
phryneas
6y ago
That would be the "observing" approach I described. The upside of an action-based (signalling) approach is that you have a better time separating concerns as actions (if used correctly) represent intent , so your component emits
11.
▲
by
phryneas
6y ago
That page introduces one tool after another, replacing all those external tools with the officially recommended Redux Toolkit that wires all of them up for you. In the end you are left with only `import { configureStore, createSlice } from
12.
▲
by
phryneas
6y ago
That does not sound like you are up-to-date with what the official redux tutorials currently recommend for writing modern redux. https://redux.js.org/tutorials/fundamentals/part-8-modern-re... Also, two-way-data-b
13.
▲
by
phryneas
6y ago
Just leaving Kent's more up-to-date opinion on modern Redux with the official redux toolkit here: https://youtu.be/xJpNIbJYK8Y?t=1523 You are right, if all your state is "cache state", then you don't nee
14.
▲
by
phryneas
6y ago
Shameless PR to update the "side-by-side" comparison on that page to an actually recommended style of Redux: https://github.com/wire-ts/wire-ts.github.io/pull/2
15.
▲
TypeScript: Interfaces Explained
(twitter.com)
2 points
by
phryneas
7y ago
|
0 comments
16.
▲
TypeScript: Restricting Generic Arguments
(twitter.com)
2 points
by
phryneas
7y ago
|
0 comments
17.
▲
TypeScript: On Generic Type Argument Inference
(twitter.com)
6 points
by
phryneas
7y ago
|
0 comments
18.
▲
The State of React’s State in 2019 (iJS London)
(youtube.com)
1 points
by
phryneas
7y ago
|
0 comments
19.
▲
Dude … we have to talk about this (in JavaScript)
(blog.mayflower.de)
1 points
by
phryneas
8y ago
|
0 comments
20.
▲
by
phryneas
8y ago
The point of using immutable in this case is to prevent mutating the state by accident as a side-effect of another action. I know that react-redux will only rerender if things changed through a dispatch (in fact, everything consuming redux.
21.
▲
by
phryneas
8y ago
immutability of redux state is convention, but not enforced within redux. This example is react state, but the same problems arise with redux: https://twitter.com/brayoh_k/status/978539881243774976
22.
▲
Of Love and Hate: TypeScript, Redux and Immutable.js
(blog.mayflower.de)
1 points
by
phryneas
8y ago
|
4 comments
23.
▲
React Gets Context and Suspense. Quo Vadis, Redux?
(blog.mayflower.de)
2 points
by
phryneas
9y ago
|
0 comments