react-native-collapsible icon indicating copy to clipboard operation
react-native-collapsible copied to clipboard

renderContent must be setState to be refreshed?

Open s349856186 opened this issue 5 years ago • 6 comments

I used the Accordion with mobx,but can't refresh the view of renderContent

s349856186 avatar Nov 01 '19 09:11 s349856186

See https://github.com/oblador/react-native-collapsible/issues/157#issuecomment-381661363

iRoachie avatar Nov 01 '19 14:11 iRoachie

@iRoachie Thanks for your reply. image image

The problem I encountered is that the components in the renderContent cannot update their status, as shown in the figure. I used the Mbox variable to mark their status. Can you help me?

s349856186 avatar Nov 02 '19 05:11 s349856186

I am having the same issue

rajngarg avatar Feb 25 '20 08:02 rajngarg

Me too. In a functional component renderContent seems to be updated only once, not on every useState function call. I am not relying my update on mobx on redux, simple state change.

laurpantelimon avatar Jun 24 '20 12:06 laurpantelimon

Same here. My renderContent is using a state variable but after the content is loaded, it never refreshes when the state variable is updated.

jplandry908 avatar Aug 31 '20 00:08 jplandry908

same here

wahidshadab avatar May 19 '22 01:05 wahidshadab