3

I have some webparts who have dependency of data which is obtained from application customizer. Is it possible to load webparts after application customizer

2

What you want to do is use a state management approach. In React, you can use Redux or MobX (and others) as your state management solution.

So, in MobX, for example, your web part would subscribe to an observable, and when that observable changes - your data from the application customizer, for example - then your web part can grab it and do what it needs to do.

https://mobx.js.org/getting-started.html

  • Sorry this is not what I am asking for – user68141 Jun 3 '18 at 5:37
0

If your requirements is , you want to execute your Spfx extension - oninit method after loading your other web-part or add-ins in your page .

In that case you can use timestamp (https://tecadmin.net/get-current-timestamp-in-javascript/) to record the time , how much time your data is taking to load, you can keep it in local storage . And load your Oninit method after that time, using local storage.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.