I want to redirect, for example, after a successful login, to the home page. And for this I wait for a response, and then redirect via route('/'), but nothing happens.
This is my login page
So... do not mix packages)
My Route and other route components were from package preact-iso. I replaced the package with preact-router and everything started working fine.
I want to redirect, for example, after a successful login, to the home page. And for this I wait for a response, and then redirect via
route('/')
, but nothing happens. This is my login pageBut it does not route this not only on the login page. It doesn't work anywhere. What am I doing wrong?
And at the same time routing trough
Router
andRoute
components work fine. AndLink
component also redirects fine.