T
TanStack•3y ago
genetic-orange

filterGlobal no update Solid js

hi, I am creating a global filter in solid js but the value is not updated with the value of the input state: { globalFilter: globalFilter(), get sorting() { return sorting(); }, its the input <input type="text" class="input-primary text-lg pl-10" placeholder="Search" autocomplete="off" value={globalFilter()} onInput={(e) => setGlobalFilter(String(e.target.value))} /> please could you help me?
1 Reply
stormy-gold
stormy-gold•3y ago
Hello! Is this a solid-query issue? 😅 Also seems like globalFilter is being read as a static value since you're accessing it in the state object

Did you find this page helpful?