Repository navigation
Replies: 3 comments
|
Hello When <script>
$: allResults, handler.setRows(allResults)
</script>But the best way would be at the end of const push_to_results = (result) => {
[...]
allResults.push({...})
handler.setRows(allResults)
} |
0 replies
|
I transfered the discussion to the proper repositery |
0 replies
Ah such a simple bug, thank you! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello.
I am trying to create a datatable. I have an empty array
allResultswhich I pass to theDataHandler.On component mount I populate the
allResultsarray with data from the database. I also push objects to it when the server sends a new object.However, after following the site's guide to add
$: handler.setRows(allResults);my table is still empty on page load and only shows data when I'm forcing it to re-render (i.e when i filter or change the amount of entries)All reactions