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

[NO-ISSUE] Fixed issue with FetchingProvider remounting children #14

Conversation

ivanCosic
Copy link
Contributor

  • There was an issue with FetchingProvider that it rendered it's
    children initially, before fetching was started, then rendering null and
    finally rendering children again after fetching. This happened when
    blocking was set to true (which is default). This was causing multiple
    mounts of children, affecting performance.
  • The issue was caused by misuse of "isFetching" flag in rendering logic
    since it was initially false, before fetching has even started.
  • Replacing "isFetching" with "isFetched" is restoring original purpose
    of "blocking" flag, since rendering should or shouldn't be blocked until
    data is fetched, not while it is fetching as it was implemented so far.

* There was an issue with FetchingProvider that it rendered it's
children initially, before fetching was started, then rendering null and
finally rendering children again after fetching. This happened when
blocking was set to true (which is default). This was causing multiple
mounts of children, affecting performance.
* The issue was caused by misuse of "isFetching" flag in rendering logic
since it was initially false, before fetching has even started.
* Replacing "isFetching" with "isFetched" is restoring original purpose
of "blocking" flag, since rendering should or shouldn't be blocked until
data is fetched, not while it is fetching as it was implemented so far.
Copy link
Contributor

@oliverlaz oliverlaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. I'll merge these changes and cut a new release later.

@oliverlaz oliverlaz merged commit 292dd85 into netceteragroup:master Sep 17, 2019
@oliverlaz
Copy link
Contributor

Published in v2.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants