Thanks for the video, I like the ground up style that is has. I had to work with query params too and it turns out that this type is not really nextjs specific and is also defined in node standard library. It can be accessed like so: import { ParsedUrlQuery } from "node:querystring"
lets assume that we have a multistep form, each step contain some select based on data from database, each step is saved on query params because it's run on server side. Ryan what do you think about this approach ?
Thanks for the video, I like the ground up style that is has. I had to work with query params too and it turns out that this type is not really nextjs specific and is also defined in node standard library. It can be accessed like so:
import { ParsedUrlQuery } from "node:querystring"
Oh awesome, that's great to know!
Welcome back @Ryan. We missed you
Thanks Sushan! It's good to be back!
lets assume that we have a multistep form, each step contain some select based on data from database, each step is saved on query params because it's run on server side. Ryan what do you think about this approach ?
Yup, that sounds like a great approach!
Thanks!
You should also be able to use the “Record” type instead: Record
or you can just use zod right!?
Haha! You can always just use Zod ;)
Small Nit: When you've already checked if `list` is an array, then you don't need the optional chain anymore.
You're right, great catch!