question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Smart table not rerender on items changed

See original GitHub issue

Hello, i try to use SmartTable, but it not changing when i take items from backend.

My call is

<CSmartTable
        loading={loading}
        tableProps={{
          hover: true,
        }}
        items={items}
        columns={fields}
        cleaner
        noItemsLabel="Данные не найдены"
        itemsPerPageLabel="Записей на странице:"
        itemsPerPage={itemsPerPage}
        onItemsPerPageChange={setItemsPerPage}
        itemsPerPageSelect
        pagination={false}
        itemsPerPageOptions={[2, 3, 4, 5, 6]}
        scopedColumns={scopedSlots}
      />

Items changing, but table no.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mrholekcommented, Jan 16, 2022

@Getterac7 I will try to fix it next week.

0reactions
Getterac7commented, Jan 13, 2022

I have a reproducible example here. Looks like <React.StrictMode> is causing the issue. Works fine without it. https://codesandbox.io/s/romantic-bose-169id

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update smart table after content changed
I filter the table by a value of a certain field in the objects. The problem is, once a value of a field...
Read more >
Table not updating when list source changing · Issue #335
The problem with this is that the data is lost if I refresh the browser. When I use this.source.add(data) to create new row...
Read more >
SmartTable does not update when binding changes
Hi, I am quite new to SAPUI5 and I am supposed to develop an application that consumes a OData service and show the...
Read more >
React re-renders guide: everything, all at once
Comprehensive guide on React re-renders. The guide explains what are re-renders, what is necessary and unnecessary re-render, ...
Read more >
How to Force-Refresh a React Child Component
To force the child component to re-render — and make a new API call — we'll need to pass a prop that will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found