https://kotlinlang.org logo
Title
n

Nikola Milovic

01/08/2022, 10:16 AM
Hey @Arkadii Ivanov, I tried altering the React samples prior to NY but got stuck on an issue that I still haven't been able to resolve. Here's my take on it https://github.com/Nikola-Milovic/Decompose/tree/react-samples, this is the approach I use in my production app currently, it has been working really well for me, but for some reason Counter sample just won't work properly. The Master-Detail works as intended. The state inner component for example is getting rerendered when pressing OnNextChild in the root as it should, but the counter and components aren't getting propagated properly and stay on the
counter0
forever I'll continue tinkering with it but might as well ask you if you notice anything out of the ordinary.
a

Arkadii Ivanov

01/08/2022, 10:57 AM
Can you explain what are you trying to achieve? Or why are you altering the samples?
n

Nikola Milovic

01/08/2022, 11:13 AM
@Arkadii Ivanov Yeah, so basically, I'd say this is the more modern approach of developing React apps. So if anyone came upon this library, they will be able to see functional components, hooks and how to handle state, components and so on. Newer versions of Kotlim Wrappers also push this agenda of FC's, looking at plain react projects and libraries will also all feature these. Also it's a bit neater. That was my general idea. Nothing super necessary but it was a quick change, if not for this issue
👍 1
💯 1
a

Arkadii Ivanov

01/08/2022, 11:48 AM
Got it. I will try to take a look later. Thanks!