You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@AshotN as mounting the modal/alert is an async task that is the reason initially value of showConfirm will be null (so the user is aware of it, else calling the function before mounting won't do anything), and once it is mounted it will have a function as the value. So you must check if it's not null before you call it.
Following the example using hooks I am getting the follow error
TypeError: showConfirm is not a function
My IDE is also complaining
TS2721: Cannot invoke an object which is possibly 'null'
The text was updated successfully, but these errors were encountered: