Smart table not rerender on items changed
See original GitHub issueHello, 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:
- Created 2 years ago
- Reactions:1
- Comments:13 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Getterac7 I will try to fix it next week.
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