Guidance for where to place API calls in the react component lifecycle when web part is lazy loaded on page #9634
Replies: 1 comment
|
Duplicate of (Lazy Loading of the Web Parts - SharePoint/sp-dev-docs - Discussion #7918 (github.com) - related to dynamic data. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SPFx lazy load some web parts when they are scrolled into view. Is there any guidance on the react component lifecycle on where API calls should be placed in order not to fire them before the web part is scrolled into view?
onInit/componentDidMount/renderetc.All reactions