#Anyone know why Next throws `error

1 messages · Page 1 of 1 (latest)

molten osprey
#

This is literally all I do:

'use client'

import { gqlGategories } from '#lib/api/bigcommerce/graphql/categories'
import { useState } from 'react'

export default async function Menu() {
  const categories = await gqlGategories()
  const [test] = useState('test')
#

Oh boy

hollow jewel
#

@molten osprey if i am not wrong isnt usestate takes 2 variables?