DEV Community

Matt Pocock profile picture

Matt Pocock

Lead developer at Stately, React, XState and Typescript lover, ex-voice coach.

Location Oxford, UK Joined Joined on  github website twitter website

Work

Lead Developer at Stately

All 29 comments

"Just Use Props": An opinionated guide to React and XState

No - state is not shared between the two machines. This is l...

XState: Why I Love Invoked Callbacks

See the 'Event Listeners' example

XState: Why I Love Invoked Callbacks

You can mock invoked callbacks in exactly the same way as wit...

When you should and shouldn't use React

Bear in mind that the 121kb figure is not an accurate descrip...

How to manage global state with XState and React

Right - I think that's a mistake. Instead, you should keep tr...

How to manage global state with XState and React

Why do you want the apollo mutation to be held in the global ...

How to manage global state with XState and React

What would you expect to happen in this instance? I am still ...

How to manage global state with XState and React

Could you provide some code to explain what you mean? What ar...

10 Ways to Host Your React App For Free

S3 very much not free.

State Management: How to tell a bad boolean from a good boolean

No - your approach would cause a different bug - you'd need t...

State Management: How to tell a bad boolean from a good boolean

Sure, you can of course fix the bug by adding more lines of c...

State Management: How to tell a bad boolean from a good boolean

Thanks for the heads up

State Management: How to tell a bad boolean from a good boolean

For those reading this thread, TS enums can achieve exactly t...

State Management: How to tell a bad boolean from a good boolean

Even though I haven't used the Typescript 'enum' constructor,...

State Management: How to tell a bad boolean from a good boolean

Hello! I find having strings defined like this makes for a be...

State Management: How to tell a bad boolean from a good boolean

Added as an addendum. The code you describe will still resul...

State Management: How to tell a bad boolean from a good boolean

Added as an addendum :)

State Management: How to tell a bad boolean from a good boolean

I'm assuming the data fetch is made when you first enter the ...

How to manage global state with XState and React

Thanks Fernando!

"Just Use Props": An opinionated guide to React and XState

it leaves a lot of the power of XState on the table True! ...

Build your First Typescript Package in Under 10 Minutes

Nice, good stuff.

Build your First Typescript Package in Under 10 Minutes

Styled-components would support this natively, I think. That ...

Build your First Typescript Package in Under 10 Minutes

Would importing the css files as a require('./index.css') mea...

Why I Stopped Using Redux

Great article, thanks Gabriel - the server cache is the numbe...

Why I Stopped Using Redux

I'd argue that at a low level of complexity, use useReducer, ...

The Eight Buffalo Rule: How to stop writing unreadable code

This article shipped with the title "The Nine Buffalo Rule". ...

How to cache node_modules in GitHub Actions with Yarn

Also, is your repo a monorepo or a single project repo?

How to cache node_modules in GitHub Actions with Yarn

Yes, it's possible you're reaching the end of your cached spa...

Junior Developer Check List

Enough to commit, push, pull, and merge.

loading...