Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I have changed the behavior of loading notifications: Before it would always use the same function and check for `cursor != ""`. This worked on most cases, but sometimes the user would jump back to the home view without doing any clean up, so cursor would be `""` and it would not load any notification anymore. Now the two functions are split in initial load, and load-more. Initial load is called on component-did-mount so we don't have to worry about where the user is coming from. We also avoid multiple firing of the events by checking `loading?`, so it does not result in duplicated notifications. Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
- Loading branch information
Showing
3 changed files
with
59 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters