#I have an issue in a loader I get the code from the searchParams when I console.log it I get the c

1 messages · Page 1 of 1 (latest)

wanton acorn
#

I have a question in a loader I get the code from the searchParams when I console.log it I get the code but in the UI with useLoaderData it appends some things to the code property

#

The Log Value on the server

#

The Log Value on the client

vast prawn
#

The _data param that comes at the end of that list is an internal Remix param and doesn't affect your code param (see there's an & separating them)

#

Remix currently uses that for internal navigation to tell the loader to return JSON instead of server-side rendering a new page (this will change soon)