Paciolan / remote-component

Dynamically load a React Component from a URL
MIT License
591 stars 49 forks source link

Update useRemoteComponent.js #7

Closed zzhcch closed 3 years ago

zzhcch commented 3 years ago

Hi, As our requirement, we want to trigger loading again when the URL has changed. Could you kindly review this?

joelnet commented 3 years ago

Hello @zzhcch,

Thanks for your contribution. It took a while because I also wanted to include some checks in the code to prevent race conditions.

I have merged your code into the master branch and your change should be available in version 2.8.1.

Cheers! 🍻

zzhcch commented 3 years ago

Sorry, I overlooked this.

Yes, you are right, it should be considered well!

thanks for your support!