API
Plugins
plugin-devtools

@stackflow/plugin-devtools

This plugin is used as a data storage layer for the Stackflow Devtools.

Installation

npm install @stackflow/plugin-devtools

Usage

To utilize the plugin, integrate it within your Stackflow setup as shown:

stackflow.config.ts
import { defineConfig } from "@stackflow/config";
 
export const config = defineConfig({
  activities: [
    {
      name: "MyHome",
      route: "/",
    },
    {
      name: "MyArticle",
      route: "/articles/:articleId",
    },
  ],
});
stackflow.ts
import { stackflow } from "@stackflow/react";
import { devtoolsPlugin } from "@stackflow/plugin-devtools";
import { config } from "./stackflow.config";
import { MyHome } from "./MyHome";
import { MyArticle } from "./MyArticle";
 
const { Stack } = stackflow({
  config,
  components: {
    MyHome,
    MyArticle,
  },
  plugins: [
    devtoolsPlugin(),
    // ...
  ],
});