vikejs / vike-react

🔨 React integration for Vike
https://vike.dev/vike-react
MIT License
94 stars 15 forks source link

add useNavigate - single file version #124

Closed nitedani closed 2 weeks ago

nitedani commented 2 months ago

Second version of useNavigate PR, single file, but imports vike/abort and vike/client/router both on the client and server

Alternative implemenation: https://github.com/vikejs/vike-react/pull/123.

brillout commented 2 months ago

but imports vike/abort and vike/client/router both on the client and server

That isn't an issue: navigate() can be imported on the server-side (it throws an error if called on the server-side).

brillout commented 2 weeks ago

Let's re-open once we work on this again.