We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HI ,
Can anyone suggest how to send the state with the useLocation or navigate in wouter?,
Something like below in react router,
For sending:
navigate("/success", { state: { stripeData: res.data, products: cart, }, });
For Receiving:
import { useLocation } from "react-router-dom"; const location = useLocation(); const data = location.state.stripeData; const cart = location.state.products;
The text was updated successfully, but these errors were encountered:
There is some work being done in #325, but we are also working on the next major release where this feature has already been implemented. See #349
Also, this seems to be a duplicate of #316
Sorry, something went wrong.
No branches or pull requests
HI ,
Can anyone suggest how to send the state with the useLocation or navigate in wouter?,
Something like below in react router,
For sending:
navigate("/success", {
state: {
stripeData: res.data,
products: cart,
},
});
For Receiving:
import { useLocation } from "react-router-dom";
const location = useLocation();
const data = location.state.stripeData;
const cart = location.state.products;
The text was updated successfully, but these errors were encountered: