taco-man
TTCTheo's Typesafe Cult
•Created by taco-man on 3/10/2025 in #questions
Redux Optimistic update
hey guys i am making a desktop app with electron, i wanna ask regarding how u keep the states synced between sqlite and redux ( or any state management lib )
rn what i m doing is doing optimistic updates on (optimistic update bts put it in the queue)
first one adds it to redux and 2nd one uses thunk to call ipc to create workspace, if success remove optmistic one and add return value and remove it from queue if its there else it gets it from the queue and retry after 5 sec along with others if any )
but lets say something happen and it got saved in sqlite but not in got updated in redux then how should i manage the data incosistancy between them one thing i can do is force sync manually by cleaning redux and fetch all the data, but i dont like this apporch
2 replies
TTCTheo's Typesafe Cult
•Created by taco-man on 10/20/2024 in #questions
Help needed in making a node lib with cli
so i have made a react form lib, i wanna deploy it to npm but the issue is i wanna keep everything as a monorepo ( like my dev which is in nextjs and package ), for that i used
lerna
, now the issue is i am not able to properly config it, what i want is like shadcn all the files get copied into the working dir so that user ll have access to everything and on top to that i also want that user should run a patch for react-hook-form ( there is a bug in that ) before competing the installisation2 replies
TTCTheo's Typesafe Cult
•Created by taco-man on 3/2/2024 in #questions
Looking for some people to build component library together ( maybe open source it )
I am fairly new to react but i know decent stuff in react/nextjs(typescript) i wanna make a component library similar to shadcn but mainly focuses on functionallity over other stuff.
for example i was looking for select component which has searching feature and infinite scrolling ( pagination inbuilt in option) i couldnt find it so while making it i thought of making component libaray focusing on functionallity.
As this may become big so i m looking for someone to work together.
DM me if u wanna work together ( it would be better if someone know testing and know industry standard )
Note :- If u are someone experienced I might ask quite a few things while working on this like standards, am i doing right etc so it might annoy u
1 replies