From 254f360375b84107a92bfa969e5ce0f5452d4766 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 16 Oct 2018 06:17:41 +0800 Subject: [PATCH] Knobs URL migration notes --- MIGRATION.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MIGRATION.md b/MIGRATION.md index 4fcc12abef6..4f5db7d2c8f 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -49,6 +49,12 @@ import { number } from "@storybook/addon-knobs"; 4.0 also reversed the order of addon-knob's `select` knob keys/values, which had been called `selectV2` prior to this breaking change. See the knobs [package README](https://github.com/storybooks/storybook/blob/master/addons/knobs/README.md#select) for usage. +### Knobs URL parameters + +Addon-knobs no longer updates the URL parameters interactively as you edit a knob. This is a UI change but it shouldn't break any code because old URLs are still supported. + +In 3.x, editing knobs updated the URL parameters interactively. The implementation had performance and architectural problems. So in 4.0, we changed this to a "copy" button tp the addon which generates a URL with the updated knob values and copies it to the clipboard. + ### Keyboard shortcuts moved - Addon Panel to `Z`