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

ListView data shows blank when running in background mode or closed for long time #12510

Closed
krishbhattacharyya opened this issue Feb 22, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@krishbhattacharyya
Copy link

krishbhattacharyya commented Feb 22, 2017

Description

I have added a ListView within a View component. It is render properly. But suppose I am out of my app ( not closed staying in stack, running on the background ) or closed the app in login state ( Login state I ahve saved in AsyncStorage ), after long time I reopen my app, the ListView data shows empty. ListView data fetch only in componentDidMount, I didi not use any activity in background. ( In the android it is working fine )

Additional Information

  • React Native version: [0.37.0]
  • Platform: [IOS]
@krishbhattacharyya krishbhattacharyya changed the title ListView data blanked ListView data shows blank when running in background mode for long time Feb 22, 2017
@krishbhattacharyya krishbhattacharyya changed the title ListView data shows blank when running in background mode for long time ListView data shows blank when running in background mode or closed for long time Feb 22, 2017
@brentvatne
Copy link
Collaborator

brentvatne commented Feb 22, 2017

When you scroll after foregrounding the app again do the contents appear? If so, then turning removeClippedSubviews off will likely resolve the problem.

@krishbhattacharyya
Copy link
Author

krishbhattacharyya commented Feb 23, 2017

@brentvatne thanks, I will check this. Please do not close the issue or say to me for move this in stackoverflow. I think this is react native issue.

One more thing noticeable(missed the last application test)!!!! Which I have not mentioned in my issue? Navigation changes is working fine but fetch data is not loaded ( application seems freeze ) ? Or sometime application is crashed when click any button.

It is really big problem, I do not know what is going on. But it is okay in android. The condition is only happening after long time ( like two or three days ) close the application or running in background. Specially when logged in state ( login info stored in AsyncStorage ).

May be the problem with memory.

@brentvatne
Copy link
Collaborator

brentvatne commented Feb 24, 2017

I am closing this issue because it is a dup of #8607. It sounds like you have another issue you'd like to raise, please one issue thread per issue.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants