最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

remix shopify hydrogen Loader function console not showing anywhere - Stack Overflow

programmeradmin1浏览0评论

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("
发布评论

评论列表(0)

  1. 暂无评论