admin管理员组

文章数量:1362778

In Loader function i'm not able to see console result anywhere even in vscode terminal where my remix shopify hydrogen project is running.

Here is my source code:

import { categories } from "~/utils/categories";

import { json, type LoaderFunctionArgs } from '@shopify/remix-oxygen';

import { useState } from "react";

// Loader function 

export async function loader({params, context}: LoaderFunctionArgs) {
  console.log(" Inside loader function ");
 
  const {data} = await context.storefront.query(SEARCH_QUERY, {

    variables: {searchTerm: 'shirt'},

  });

  console.log("

本文标签: remix shopify hydrogen Loader function console not showing anywhereStack Overflow