Michael Peyper 🇦🇺

698 posts

Michael Peyper 🇦🇺 banner
Michael Peyper 🇦🇺

Michael Peyper 🇦🇺

@michaelpeyper

Developer Experience Engineer at Cash App/Block. Author of react-hooks-testing-library. Opinions are my own.

Melbourne, Victoria Katılım Aralık 2014
157 Takip Edilen167 Takipçiler
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@acemarke Yeah dynostore has been unmaintained for a few years now. Happy to bring my experiences into any conversations you have about lazy loading redux though.
English
1
0
1
0
Mark Erikson
Mark Erikson@acemarke·
We've tossed around the idea of building _some_ form of code splitting / lazy loading into RTK directly, but no real investigation: github.com/reduxjs/redux-… I also know some existing libs like `redux-dynamic-modules` and `redux-dynostore` seem to be dead / unmaintained
English
3
0
9
0
Mark Erikson
Mark Erikson@acemarke·
How many of you are using Redux, and doing _any_ form of code splitting (lazy-loading reducers, etc)? Curious on numbers for RTK vs legacy, split vs no split. Also: if you _are_ splitting, please reply with approach (and examples?): - hand-rolled - specific library name
English
9
0
8
0
Mark Erikson
Mark Erikson@acemarke·
@michaelpeyper Uh... that sounds like the kind of thing i might have randomly tweeted about at some point, but if I did I honestly don't specifically remember it :) so no, nothing concrete if I did ask for that That said, the Ember folks have some relevant thoughts: semver-ts.org
English
2
0
3
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@acemarke did you put a call out recently (recently being sometime this year) for a tool to detect if the changes to a type defs result in a breaking change to consumers? Did anything come from that?
English
1
0
2
0
Jacob MG Evans
Jacob MG Evans@JacobMGEvans·
I am seriously considering moving countries and in the interim homeschooling.
English
4
0
18
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@sigglet_ Have fun when you upgrade to React 18 and all your console fills with warnings and all your async tests hang until the test times out 😅
English
1
0
0
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
Just to remove any confusion, the future of renderHook is in the RTL and packages. We are ending support for RHTL in the hopes that bringing the API into the main packages will mean a more unified and consistent experience for our users.
Testing Library@TestingLib

📣 @testing-library/react@13.1.0 just shipped with a new built-in renderHook function that operates similar to @testing-library/react-hooks but with support for React v18 🎉

English
1
4
9
0
Matt Pocock
Matt Pocock@mattpocockuk·
It's starting to get real 🚀 Having ideas for a TypeScript course to take you from an intermediate level (I can use generics a bit) to outrageously powerful TS wizard. I'd love to do deep dives into OSS projects that do TS magic under the hood. Which should I check out?
English
58
9
600
0
Mark Erikson
Mark Erikson@acemarke·
Is there such a thing as "snapshot tests for TS types"? As in, I would like to write a test file that sets up some code+types, capture the TS-calculated variable type as a string or similar structure, and check if it changes.
English
7
0
20
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@TAbrodi My team has started doing this, but at the start of a feature, mobbing implementation ideas and providing insights from previous experiences in the codebase. We've found it reduces time in review because everyone already has an idea of what was being implemented and less rework.
English
1
0
2
0
Tiger Abrodi
Tiger Abrodi@TAbrodi·
A practice we have in our team is to do a mob review after a feature has been implemented 😄 The person who primarily worked on the feature goes through the work that has been implemented, and together as a team we try to find improvements that can be made 🔥
English
2
0
6
0
Jacob MG Evans
Jacob MG Evans@JacobMGEvans·
Ok, what are some good tech swag shirts I can buy or get some other way? I'm replacing all my old shirts and figured I could go all-in on this insufferable identity I've made for myself 🤣😅
English
3
0
7
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@acemarke I changed companies. I'm consulting now and the current client is a toolbox user, so I'm catching up on it all. RTK Query looks great too, but they aren't using it (yet 😉)
English
0
0
2
0
Mark Erikson
Mark Erikson@acemarke·
@michaelpeyper Glad to hear it! I remember hearing that your company was moving away from Redux a while back. That changed, or is this something different?
English
1
0
0
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@acemarke are there any guides or tips for testing reducers/actions created with `createSlice`? The toolkit docs seem completely devoid of testing articles. Is it just the same as "old redux" but we just get the reducer and actions from the slice instead?
English
1
0
0
0
Michael Peyper 🇦🇺
Michael Peyper 🇦🇺@michaelpeyper·
@acemarke Yeah, thanks. That's what I thought, but it's been so long since I've been in redux land I wasn't sure if there was a new fan-dangled slice testing utility hidden away in the toolbox somewhere. Also, really good job with the toolbox. Loving "new redux" so far.
English
1
0
1
0