I know that there already is a pull request regarding that issue (https://github.com/josemariagomez/momentum-modal-react/pull/1) but in said PR the resolveComponent call isn't treated as an asynchronous call in the useEffect call where the event listeners are being reigstered. Therefore the resolveComponent would be called at the same time when the event listeners are being registered. I don't know if that would really matter in this case but it's better to handle that in the code I think.
I know that there already is a pull request regarding that issue (https://github.com/josemariagomez/momentum-modal-react/pull/1) but in said PR the
resolveComponent
call isn't treated as an asynchronous call in theuseEffect
call where the event listeners are being reigstered. Therefore theresolveComponent
would be called at the same time when the event listeners are being registered. I don't know if that would really matter in this case but it's better to handle that in the code I think.This PR relates to #3