david aka claudekennilol
TTyphonJS
•Created by david aka claudekennilol on 7/5/2024 in #typhonjs-runtime
Correct way to have inputs show other data?
The goal here is to show a color input. If the input is empty then it shows the user's current color. If it's showing the user's current color, then I want it t o be able to modify the color variable. This all basically works, but what it's doing is quickly updating the variable to the user's color instead of just staying blank and falling back to the user's color. This causes a double render and makes it so that if the user's color changes, then this won't be using the new value.
Is there a better way to do this?
99 replies