79784908

Date: 2025-10-07 20:26:06
Score: 1.5
Natty:
Report link

I also struggled in updating arrays, especially nested. But the root cause? it requires imperative code or query refetches. But what if you could have declarative aray updates almost like simple objects?

For this, you can use normy, automatic normalization library, which brings apollo like automatic normalization and data updates, but for anything, including REST. And, as bonus, it supports array operations, even custom ones, so you can enjoy 100% automatic data updates for your whole app!

If you are interested, you can check it out here - https://github.com/klis87/normy

It is worth mentioning, that it does not really affect how you write code, it almost do not have any api surface. And you can use it with any data fetching library, like `react-query`.

Thanks, and really awaiting any feedback!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): check it out
  • Whitelisted phrase (-1.5): you can use
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: klis87