r/reactjs • u/tannerlinsley • Oct 26 '26
Show /r/reactjs Introducing TanStack Redact
https://tanstack.com/blog/introducing-tanstack-redact
186
Upvotes
r/reactjs • u/tannerlinsley • Oct 26 '26
100
u/jayroger Oct 26 '26
Okay, I've read the first few paragraphs of the article, and I still don't have any idea what it does.
173
u/EnGodkendtChrille Oct 26 '26
I really worry about the direction Tanstack is going. I use Query in every application and Table in most. Im a big fan.
But it seems like there's a new library every month, while around half of your current ones remain unfinished. The documentation often dont feel complete either.
Why not work on that first?
41
u/Zeragamba Oct 26 '26
Redact is a bad name imo, as my first thought was that this would be a log sanitization or redaction library.
A Preact alternative is not particularly useful to me, where as Query, Forms, Router, Store, and Pacer are all super useful.
20
u/Shomriddho Oct 26 '26
Feels like preact but better and larger
6
u/Salkinator Oct 26 '26
So.... preact?
5
u/Ferlinkoplop Oct 26 '26
Is this fully compatible with React Compiler?
4
u/Gloomy-Moose9096 Oct 26 '26
whats next Tanner? A browser ;) I love tanstack
72
u/fireatx Oct 26 '26
I don’t understand what this achieves. Who is going to pick a brand new unstable React replacement with almost none of the maturity of the React ecosystem just to shave 40-50KB off their bundle?
24
u/Emotional-Dust-1367 Oct 26 '26
How are these savings accomplished? The blog doesn’t give a big picture of what I lose by using it
10
u/grahamhart_ Oct 26 '26
the name makes me think it strips data before it hits the client not sure how it compares to existing solutions yet
1
u/rodneon Oct 27 '26
Does it support Signals?
6
u/amayle1 Oct 26 '26
I’d definitely include a comparison to preact since this is ostensibly the same thing
3
u/Suspicious-Name4273 Oct 27 '26
So this is compatible with all react libs out there? (As long as they don’t use non-public react apis ofc)
1
u/Middle_Tree_9117 Oct 28 '26
when will react query get a v6? seems like there are new libraries but existing ones are not exactly maintained
1
u/ironimus42 Oct 26 '26
whoa i'm always so impressed at how many good quality tools you manage to produce. Obviously there's many people contributing and i imagine ai makes it somewhat easier (though at this quality level ai certainly doesn't result in 10x productivity boost), but owning and maintaining this many insanely popular tools while constantly creating new and even more ambitious ones must be incredibly challenging. just wanted to say thank you to you and other contributors for being so cool!
2
u/mastermog Oct 27 '26
I could see this being a good fit if you're using Astro and need a lightweight drop in for a React island.
2
u/shakshukinha Nov 01 '26
Thanks for releasing it as a library u/tannerlinsley , I've been looking forward to test it since your blog post earlier this year 🤞
2
u/xavier86 Nov 02 '26
Please do not let AI write your documentation
4
u/onderbakirtas Oct 26 '26
Sorry to say that even if it’s a great technological advancement and brilliant work, it’s not needed. Feels like yet another Linux distro.
1
u/mrcodehpr01 Oct 28 '26
Love everything you do! Thanks! Looks cool.
1
u/SatoshiNakamoto_2009 22d ago
Can they please improve TanStack Form?
1
u/besthelloworld Oct 26 '26
What does this offer compared to Preact? Seems weird to leave that topic out of the post.
1
u/Vincent_CWS Oct 27 '26
The main limit: rendering is synchronous
Redact renders synchronously. It does not have these React features:
- Time slicing: React divides a large render into small parts.
- Interruptible rendering: React stops a render to process user input first.
Result: a large render can delay user input. For example, a click or a key press can respond slowly while a
big list renders.
is it real?
0
u/Distinct_Relief5885 Oct 26 '26
How does it differ from standard React? Is it something like SolidJS or Svelte without a virtual DOM?
0
u/bluehavana Oct 27 '26
I would be interested to see how this compares to https://octanejs.dev/
-1
u/naveenda Oct 26 '26
I truly miss when we used to care about new JS framework releases.
Now, I have to convince my LLM and CTO to use this on new project.
0
u/gandalf__thewhite__ Oct 27 '26
Is it possible to use Tanstack start with Preact?
0
u/silv3rwind Oct 27 '26
Not convinced. Size isn't the problem with react, VDOM is.
0
u/bluebird355 Oct 27 '26
What is it for? I don't get it
0
u/Aggressive_Mention_1 Oct 27 '26
You know what js/web world was missing. a standard library/toolkit/
Bun is consolidating the tooling layer: runtime, package management, bundling, testing, type-checking, linting, formatting, and native APIs....and all made it so i dont have to juggle with 20 packages..
Tanstack is another such combo that was long needed which is super to the health.
What people mostly use.
tailwind, query, routing, store(state management), forms, validation(zod) tables, icon-pack, file upload(with compression, or conversion and stable, splititng, resumable), storage(session, local, cookie, indexdb and such), light weight animations. INTERNATIOLIZATION.
sometimes
toasts/notifications, tour/help(driver.js), search(always repeated hard work, with filters, sorting, fuzzy), and now one shot way for, (PWA, offline sync, service worker).
If tanstack can maintain the quality, speed, and minimal/no external dependecncy other then each other. We have 1 place for any web projects.
I think the one i want are.
0. State managemnt(i know store is coming soon, complained in X enough about it)
(icon is hard one to take on..)
(animations other are doign it better and needs too much work)
With this the package hell about js/ts . we will have answet to it. JUST SE BUN+TANSTACK
-1
u/dalce63 Oct 26 '26
we're all going to die one day. none of this matters.