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•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