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!",
},
},
};