Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
413 views
in Technique[技术] by (71.8m points)

reactjs - React: grid not re-rendering when switching tabs

Given the size of the codebase I'm working with, this is a theory question.

I have a table with a series of rows on a tab. On load, the rows appear correctly. The rows can be expanded and collapsed, and the code remembers the user's last preference.

However, when I change tabs and change back to the window with the table, the code remembers the rows are expanded but the rows do not show.

When I resize the window, the rows suddenly appear, as if a re-render has occurred.

Basic question: is there a way to make sure the element re-renders programmatically to get the rows to appear correctly?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...