Hello I'm sending a color-scheme cookie from my browser, and unable to parse the value of the cookie with remix. I can confirm that request.headers.get("Cookie") contains the cookie, but when I try to do cookie.parse() I am getting an empty object.
Note: Using Remix 1.16.1
export async function loader({ request }: LoaderArgs) {
const colorSchemeCookie = createCookie("color-scheme");
const colorScheme = await colorSchemeCookie.parse(request.headers.get("Cookie"));
console.log(colorScheme); // an empty object -> {}
return json({ colorScheme });
}