News for hackers. Stuff that matters.
Re:Widget Driven Development by gherkinnn on Wednesday December 15, 2021 @09:19AM (#29566252)
Thank you for formalising this.

We came to a similar conclusion as we moved from imperatively handling server state to using ReactQuery.

What I got to like the most was the small cognitive load. Other than the minimally shared UI state, everything I need to hold in working memory is close by. Not that it's novel or impossible to achieve the same through other means, but that this way of building UIs often leads to a manageable result.

It works very well in cases where the server is the source of truth, but I don't want it to feel like it is.

The creator of ReactQuery talks extensively about the philosophy behind his library in a recent PodRocket episode. [0]

0 - https://podrocket.logrocket.com/tanstack

Re:Widget Driven Development by alexey2020 on Wednesday December 15, 2021 @10:12AM (#29566995)
"the small cognitive load" - true that!

Thanks for the link to the podcast. Will definitely check this out