Dynamic pages from slugs in CMS
Hi, i have a problem that my slug isnt passed to the fetchSlugs1 server function. I am new to Tanstack and i cannot wrap my head around this problem. Thank you for any help.

3 Replies
ambitious-aquaOP•6mo ago
my bad, i found a documentation, thanks anyway.

fair-rose•6mo ago
I think your validator is wrong, try this:
If I were you I would probably use zod (validator library) for this.
ambitious-aquaOP•6mo ago
i will check it out, many thanks!