Is there a way to get explicit_search_params
for the current route?
#578
-
Can something like the following be used in the load function? const {page, limit} = getRouteSp(request) or const page = request.searchParams.get( explicit_sp.page ) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I believe that if you have your config as a separate object, yes. 👍 With sveltejs/kit#11386 point 3️⃣ want's to address this. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jycouet ! Breaking the config out into a separate object would solve the problem to certain extent. My use case is simple - to have the compiler catch wrong keys in This may be out of scope of the plugin, but augmenting the |
Beta Was this translation helpful? Give feedback.
I believe that if you have your config as a separate object, yes. 👍
You have a specific usecase in mind?
With sveltejs/kit#11386 point 3️⃣ want's to address this.