Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 746 Bytes

MIGRATION.md

File metadata and controls

26 lines (20 loc) · 746 Bytes

Migration

From version 7.x to 8.0.0

withQuery decorator removed

The withQuery decorator is not necessary anymore and therefore its export was removed from the package. It's an internally defined decorator which is automatically applied to every story you have. Please remove from your stories/preview files:

import React from "react";
import { Button } from "../Button";
-import { withQuery } from "@storybook/addon-queryparams";

export default {
  title: "Button",
  component: Button,
-  decorators: [withQuery],
  parameters: {
    query: {
      greeting: "Hello world!",
    },
  },
};