Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVGs in Table not getting re-rendered #1251

Closed
reginagarkin opened this issue Oct 19, 2018 · 0 comments
Closed

SVGs in Table not getting re-rendered #1251

reginagarkin opened this issue Oct 19, 2018 · 0 comments
Labels

Comments

@reginagarkin
Copy link

This is my table component:

image

If I filter the table to just show failed rows, it looks like this:

image

I am conditionally displaying an svg icon based on the response.

I added a filterChangeCount to the table which changes everytime a filter is applied and called forceUpdateGrid to force the data to refresh. But it seems like the svg is getting cached. Any ideas on how to fix ??

	componentDidUpdate(prevProps, prevState) {
		if (this.props.filterChangeCount !== prevProps.filterChangeCount) {
			this._table.forceUpdateGrid();
			this._table.recomputeRowHeights();
		}
	}
<Table
	ref={(ref) => this._table = ref}
	filterChangeCount={filterChangeCount}
	width={width}
	height={height}
	headerHeight={38}
	rowHeight={40}
	rowCount={dataSet.length}
	rowGetter={({ index }) => dataSet[index]}
	onScroll={this.onScroll}
	onRowsRendered={this.onRowsRendered}

>
					>```
@reginagarkin reginagarkin changed the title forceUpdateGrid on Table not working SVGs in Table not getting re-rendered Oct 19, 2018
@github-actions github-actions bot added the Stale label Oct 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant