Alasdair McLeay

970 posts

Alasdair McLeay

Alasdair McLeay

@penx

Remix and Radix fanboi. Created govuk-react. Prev UI consultant @Speechmatics, @NearForm, @IBM. DreamBerd consultant (world first) @[email protected]

Brighton Katılım Ocak 2009
832 Takip Edilen246 Takipçiler
Sabitlenmiş Tweet
Alasdair McLeay
Alasdair McLeay@penx·
Classic jira bug report
English
0
1
4
505
National Rail
National Rail@nationalrailenq·
@penx @AldiUK Hi Alasdair, I'll pass this on to our team to look into further.
English
1
0
0
24
Nik Graf
Nik Graf@nikgraf·
@penx is this not just a Setting in the React dev Tools to gray them out? I would be surprised if React would patch logging in any way
English
1
0
1
30
Alasdair McLeay
Alasdair McLeay@penx·
I thought double invocation of useEffect in dev is to show suspense edge cases. I want to replicate a real double invocation, but when a component suspends, the useEffect isn't run. Is there a way to create a real world example for this or have I missed something?
English
1
0
1
111
Alasdair McLeay retweetledi
Alasdair McLeay
Alasdair McLeay@penx·
My code is so serious, it errors when run in jest
English
1
3
8
615
Alasdair McLeay
Alasdair McLeay@penx·
@nikgraf Cleanups happen after render: The useEffect cleanup function always runs after the component has rendered, not before. (9/9) (yes my counter broke)
English
0
0
1
13
Alasdair McLeay
Alasdair McLeay@penx·
@nikgraf Cleanup functions access stale state: Cleanups in useEffect gets the state from when the effect was defined, not the latest - though refs will be up to date. (8/9)
English
1
0
1
11
Alasdair McLeay
Alasdair McLeay@penx·
@nikgraf @TkDodo Ah perhaps I figured it out, I need to render without suspending first, then suspend, then re render. So I think "Will fire twice in StrictMode" in @TkDodo 's article becomes a real issue, and the ref fix doesn't work in production either
English
1
0
1
113