wouter-preact: Params with typescript?
Nicolab opened this issue · comments
Nicolas Talle commented
Alexey Taktarov commented
Hi @Nicolab, I can't reproduce this. Could you provide a code sandbox?
Nicolas Talle commented
I found my error.
See my screenshot, with the callback it's the params
defined (params)
instead ({params})
.
With the component passed directly, I need to define token
prop as optional. It's not what I want but that works like this, because it's defined like this in Wouter.