You don't need Redux & a Black-Friday Deal šŸ¤‘

Hey friend,

Today's snack is all about learning State management in GraphQL.

If you are used to a state management library like Redux, then using Apollo Client with GraphQL as a replacement will seem daunting.

Redux allows us to easily add a new state to manipulate data on the front end.

Here is a snippet for how we can define local-only fields, i.e. new fields on the GraphQL type, and extend the Server Type with a field that will only resolve on the client. This field means nothing to the Server, and the Server won't even know about it.

For example, the field `stockText` below is a local-only field that will only resolve on the client side. InMemoryCache is the equivalent of Redux but with GraphQL server data added on top.

Let's review a snack,

There is a lot more to state management that this snippet can cover, so take a look at this detailed blog post on how we can use Apollo Client for State management. I'm drawing comparisons with Redux.

Latest Frontend Gossip/News šŸŽ‰

ā€‹Great Black Friday Deals for Developersā€‹
James Quick recorded an excellent video for the top Black Friday deals for developers! Check it out here. I recently released an e-book on helping developers grow into engineering leaders, which also made it to the video. šŸ˜‡

ā€‹Get end-to-end type safety with tRPCā€‹

tRPC gives you inferred type safety, so you don't need to create complex Types, and it will infer that for you. This makes me very excited.

Black Friday Mentoring Exclusive Deal āœØ

I am excited to announce that my most popular Mentoring program is 50% OFF for a limited time. You'll love my mentoring program if you want to level up in your career or brainstorm ideas to grow as a technical and professional developer.

Here is what a developer Stella that I grew from a Senior Developer to a Staff Developer, had to say, šŸ˜‡

Ankita championed her teams at WealthSimple to own long-standing codebases that hadn't had active maintainers for a long time. She coached and sponsored me through many ambitious projects requiring cross-team collaboration and strong stakeholder management.
ā€‹
By working with Ankita at WealthSimple, I learned how to be a more effective technical communicator and enabler for others. Above all, as my manager, she always advocated on my behalf for new growth opportunities and maintaining a healthy work-life balance.
ā€‹
ā€‹Stella Kim, Principal Engineer, Notchā€‹

I also offer a free trial if you are interested.

That's all for today, I'll talk to you soon.

A Frontend Newsletter that you'll love! šŸ’–