В npm сделали Staged Publishing — и это крутая технология на которую я собираюсь перевести весь свой опенсорс.
Есть npm provenance — способ связать содержимое GitHub и пакета. Но раньше он требовал деплоить через CI, а сейчас стало можно требовать 2FA.
https://t.co/sGIcTpBrNQ
@schanuelmiller@AdamRackis I am already there! I think if we want to discuss in detail it is better if I would prepare the demo for my use case (should take me a while). Until this happens I would reply that RSC in TanStack would help but require a composite comp creation and they have a bad DX vs next js
@AdamRackis@schanuelmiller These pages have various versions (like some blocks are absent on some pages) so one file will not work well. Also the issue with TanStack loaders via react query is the components you do not see are still in the bundle. With next js they are omitted from the resulted page.
@AdamRackis There are many. One of them could be the page that consists of ~5 blocks. Each block is a dedicated request but is optional; the condition upon response decides if the block would be shown. With next js each block is a pair of files, with TanStack Start god help me
@AdamRackis I have a use case but TanStack’s implementation does not seem to fit tho. I like the thing it is not “just data”, so hope to see what are your findings
@dmitrij_kozlov Зависит от дизайна, часто предполагается что если изоляция может быть нарушена (а это не у всех ORM в принципе возможно), то само приложение обычно делают ответственным за изоляцию (например можно вынести работу с базой в отдельный сервис/модуль/класс/you name it)
@tannerlinsley@AdamRackis Sure, but the thing is about RSC being the staring point. How can I do:
<ServerLoadAndMaybeShow id=“123” />
And not be too verbose? Considering if server decided not to show anything client components have to be excluded from the served output
@AdamRackis The whole RSC setup in tanstack is more about optimisation and less about DX / mindset
That is so sad, I really hoped they’d find a better way to implement this approach than in next, but to me it is a worse approach
@AdamRackis E.g. I can have an optional interactive block that can be hidden or show me the data based on the data itself
Making this with ‘use client’ was an easy thing, but using a wrapper & loader does not allow any isolation of such unit and just feels too verbose