Skip to content

How to use LSM in Next.js 14 (app router) #151

@spacecat

Description

@spacecat

Hi,

I searched the issues here and someone mentioned to use ssr: false using a dynamic import but I can't get it to work.

const createStore = dynamic(
  () => import("little-state-machine").then((mod) => mod.createStore),
  { ssr: false },
);

What is the correct way to import LSM in a Next.js 14 (app router) app?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions