Valerii Smirnov
Valerii Smirnov
https://tsdocs.dev/docs/@preact-signals/utils/functions/createResource.html
@aadamsx You should pass signals to children components to prevent child components rerenders. Also it's better to use resource like this: ```tsx const filterSections = ( sections: SectionData[], startsWith: `H${1...
@AfaqaL You can pass arguments from `source` and with `refetch` method. But for authorization it's better to use wrapper around fetch with this functionality
@AfaqaL i think it's ok implementation if you can have no token in fetcher. But in most places of the app use can be sure is user authorized or not....
It's ok to create resource with `createResource` outside of components Do you use preact signals babel plugin? Can you send repro in stackblitz?
It works fine with `@vitejs/plugin-react-swc`, btw
@sbesh91 Its not true. And i dont know any reason why ++ shouldn't trigger setter https://stackblitz.com/edit/vitejs-vite-vtubyq?file=src/App.tsx
Btw, i don't thinks its major release
I think it shouldn't be in adapter lib, it will have good fit inside of utility libs. I will create collection of hooks for signals
Version with next tag (`13.2.0`) is not working too (in repro)