Skip to content
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

[v6] [Feature]: Allow callback for message property of Prompt #7974

Closed
vmlopezr opened this issue Aug 24, 2021 · 2 comments
Closed

[v6] [Feature]: Allow callback for message property of Prompt #7974

vmlopezr opened this issue Aug 24, 2021 · 2 comments

Comments

@vmlopezr
Copy link

What is the new or updated feature that you are suggesting?

The docs in https://reactrouter.com/core/api/Prompt mention that the Prompt component allows a callback for the message property.

Looks like the Prompt component still exists In V6 beta's, but it only allow passing a string for the message property.

Why should this feature be included?

This would allow to prevent the prompt based on some logic on the next path. For example we could update url search params with out getting the prompt.

@chaance chaance changed the title [Feature]: Allow callback for message property of Promp in V6 [v6] [Feature]: Allow callback for message property of Prompt Sep 4, 2021
@fgatti675
Copy link
Contributor

I think my question is related to this.
I am trying to show a prompt only on POP actions, which was posisble in v5.
Is it also possible in v6? I can't seem to find a way
Thanks!

@timdorr
Copy link
Member

timdorr commented Dec 10, 2021

Closing since this API is no longer in the library. #8139 will track when it's added back.

@timdorr timdorr closed this as completed Dec 10, 2021
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

3 participants