<@U33H6SB2B>, despite my best efforts, I cannot fi...
# react
m
@turansky, despite my best efforts, I cannot figure out how to implement/enable tanstack react router.navigate() in order to create a KW PR. I guess I'm going to need some hints. I created an issue: https://github.com/JetBrains/kotlin-wrappers/issues/2839
t
Requested signature is already available 😉
Just extension import required 😉
m
Maybe I am unable to find the right import?
Copy code
public final val navigate: NavigateFn

Imperatively navigate using standard NavigateOptions. When reloadDocument or an absolute href is provided, performs a full document navigation. Otherwise, builds and commits a client-side location.
API Docs  
   tanstack.router.core.RouterCore
Leaves me with :
Argument type mismatch: actual type is 'Function0<Unit>', but 'NavigateOptions' was expected.
t
Please add:
Copy code
import tanstack.router.core.invoke
and call:
Copy code
router.navigate {
   ...
}
Works? 😉
m
Yes, I updated the issue, but now it becomes a documentation issue.