navigate
property doesn't exist on ClerkProvider
requires documentation update
#991
Open
4 tasks done
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://clerk.com/docs/references/react/add-react-router
Publishable key
pk_test_not_required
Description
I was following the react router dom documentation available on the website and figured out that it is outdated and is not consistent with the current version of clerk-react. Specifically on the documentation page of react-router-dom the documentation states that we can pass
navigate
function fromreact-router-dom
'suseNavigate
hook as thenavigate
property of theClerkProvider
.But the IDE states correctly that the property
navigate
doesn't exist on the componentClerkProvider
which is consistent with the latest version ofclerk-react
.However, using the exampels/demos available on the github repo, it can be observed the the
ClerkProvider
component doesn't require thenavigate
property.Kindly update the documentation on the webiste. I have included the link of the documentation where the issue can be found.
Clerk + React Router Documentation
Screenshot of the issue from the website's documentation:
Screenshot of the implementation from Github Repo:
Environment
The text was updated successfully, but these errors were encountered: