Řambo
Řambo
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Řambo on 8/2/2023 in #questions
Improve performance - Avoid Re-renders when changing range input used as a volume slider
How would i go about improving this. Right now when you move the slider it'll re-renders all the Quotes Im having a hard time wrapping my head around this. My thinking is I would need to manage the sound with useSound somewhere else? or do some type of composition with the components? If i do the former, then you won't be able to play multiple sounds simultaneously? Idk Any advice would be appreciated thanks.
9 replies
TTCTheo's Typesafe Cult
Created by Řambo on 2/9/2023 in #questions
Vercel deployment - React Router
Every time i deploy with vercel i have to make a vercel.json file and add this
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}
{
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}
so that routes dont mess up. Are there any alternative to this? or do i just have to do this everytime
10 replies
TTCTheo's Typesafe Cult
Created by Řambo on 12/14/2022 in #questions
How to deal with constantly updating data
So i have an app that fetches some data from some endpoint. Some of this data will change every 2 weeks, not all of it. One way to get the updated date would be to restart the app. Would i need to setup a cron job? setInterval? Im wondering what would be a good way to go about this. If it helps, this is relating to the game league of legends, which has patches every 2 weeks.
7 replies