Closed mnpqraven closed 5 months ago
I fixed your issues in the latest release, you should update these versions in your Cargo.toml
taurpc = "0.2.6"
specta = { version = "=2.0.0-rc.9", features = ["export"] }
And on the frontend you should also upgrade taurpc
pnpm install taurpc@1.4.4
both this and #21 seems to be working now. I appreciate a lot the quick replies !
The title might be a bit hard to understand. Let me explain this further, i'll start with what i've experience with the procedure path
Given these 2 procedures
This will compile with no errors and the TS codegen will also generate the correct path for me (
taurpc.actions.file.copy()
andtaurpc.actions.ui.toggleExpand()
), but the functions will not get called in rust side if there's no root path (actions
), both.file
and.ui
routes now can't be called. If I change either of them to the root (eitheractions.file
oractions.ui
to `actions) then both routers work.This behavior is also present when using the
router.merge()
. Here's what i have to do in my code base to have routing working by having a hello world root:none of the above route would work if i don't have
ApiImpl