Skip to content

"Upsert" option (create modal if not open, update if is open) #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rikbrown opened this issue Apr 28, 2025 · 0 comments
Open

"Upsert" option (create modal if not open, update if is open) #52

rikbrown opened this issue Apr 28, 2025 · 0 comments

Comments

@rikbrown
Copy link

I'd like to implement a callable where it can only be opened once - newer invocations replace the old one.

Right now I am doing:

Callable.end()
setTimeout(() => Callable.call(...)) // note: if you don't wrap in setTimeout, it opens v briefly and then the end above closes it

which I presume isn't correct especially given I had to work around the preceding end closing it.

Is there a way to do this I am missing? If not I suppose this is a feature request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant