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.

Add `forceRender` to `Collapse.Panel`

See original GitHub issue

What problem does this feature solve?

Sometimes you need some components to be loaded even if they are not visible. There is already a forceRender attribute in Tabs.TabPane but the same behavior is desired for Collapse.Panel too.

What does the proposed API look like?

forceRender: Force rendering of content in panels, instead of lazy rendering it. Type boolean, default false

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
paulcmasoncommented, Jan 9, 2018

Waiting for https://github.com/react-component/collapse/pull/82 to be merged now before doing a pull request for ant-design

0reactions
paulcmasoncommented, Jan 9, 2018

@yutingzhao1991 - I’ll get together a pull request for rc-collapse

Read more comments on GitHub >

github_iconTop Results From Across the Web

Collapse - Ant Design
forceRender, Forced render of content on panel, instead of lazy rendering after clicking on header, boolean ; header, Title of the panel, ReactNode...
Read more >
Dynamically Open and Close antd / react Collapse Component
I want to dynamically open/close Collapse Elements independent of user interaction (to reveal a specific panel via a search result).
Read more >
ReactJS UI Ant Design Collapse Component - GeeksforGeeks
forceRender : When clicking on the header, it is used to force rendering of content on panel, instead of lazy rending. header: It...
Read more >
Collapse - Introduction - Lowdefy
A container with collapsible panels. The area keys are user defined, and should be listed under the panels property. Each panel also has...
Read more >
Create collapsible React components with react-collapsed
Also, we need to use the getCollapseProps function to append the required props to the collapsed panel. Now, add the following CSS to...
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