-
Notifications
You must be signed in to change notification settings - Fork 217
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
[Feature]: react-router v6.4 Data APIs integration #423
Comments
What is the difference with the current implementation? https://docs.telegram-mini-apps.com/packages/telegram-apps-react-router-integration |
In 6.4 This new methods available only while initializing a router in a new way - using function call, for example |
But |
Yes, we need a custom router. With
New api officially not expose base For the integration with a new |
I create a workaround for 6.4+ style routes definition:
Maybe, it will be better to implement this in |
It works, but the Back button does not respond. |
Any update about this? |
Try to use |
Hey guys. I decided to postpone the development of the navigation package (and React router integration as well), so it is better to use the standard React routing utilities for now. We will go back to this topic after some time |
Thank you! I finally made the same decision |
Is your feature request related to a problem? Please describe.
react-router v6.4 provides new API to routers and new routes definitions. And documentation recommends to use new API https://reactrouter.com/en/main/routers/picking-a-router for a new projects.
Describe the solution you'd like
Ability to use telegram-apps
BrowserNavigator
along with new react-router API.Describe alternatives you've considered
Manually show/hide back button using router, initialized by
createBrowserRouter
method and tracking location usinguseLocation
hook;Additional context
No response
The text was updated successfully, but these errors were encountered: