Next.js Discord

Discord Forum

UseState not re-rendering element

Answered
SharpieMaster posted this in #help-forum
Open in Discord
I am having issues with the react use state with next js, please help me with my spaghetti code
Answered by SharpieMaster
the issue was updating the filtered options when both the searchTerm or the options update
View full answer

14 Replies

the select element's options arent updating when the ingredient.name changes
if you need more context please tell me what you need, I will provide it as soon as I can
Cape lion
you can debugging in here.
@Cape lion you can debugging in here.
everything seems to work fine
Cape lion
you can also debugging in here.
I mean, in SelectElement Component.
what do I log?
wait what
wdym
the issue was updating the filtered options when both the searchTerm or the options update
Answer
@Cape lion thx for the help