dmuczynski-nexient
dmuczynski-nexient
Curious why this got closed. It is a state thing. I am using hooks and had to set the headers at the beginning. I updated the headers (formatting with data...
for mine to work, i updated the headers which caused my page to re-render. the sorting worked after that. i use hooks, so i just did setHeaders after my data...
the hook: const [headers, setHeaders] = useState([]) in the useEffect (where i download the data), after i set the data, i just do this: setHeaders(updatedHeaders) updated headers includes the sort...