Repository: storybook
Issue: Errors when reordering docs tab to appear first
Labels: bug,needs triage

**Describe the bug**

When we try applying the following configuration on `preview.js`, then, whenever a story is openend, it seems to trigger bundle loading twice and the "manager" error appears. I deduce the bundle is loading twice because the "Vue is running in development mode" shows twice, but when the tab reordering configuration is not present then the "Vue" message only appears once.

```js
export const parameters = {
  // ...
  previewTabs: {
    'storybook/docs/panel': {
       // position "Docs" tab before "Canvas"
      index: -1,
    },
  },
  // ...
};
```

```
 manager  received setGlobals but was unable to determine the source of the event
```
![manager received setGlobals but was unable to determine the source of the event](https://user-images.githubusercontent.com/11022464/178814805-fb867865-efe6-40dd-8f1b-b231a0153a34.png)

![vue loading, then manager received setGlobals but was unable to determine the source of the event, then vue loads again](https://user-images.githubusercontent.com/11022464/178815589-c317d6f6-bd62-44e1-a6d0-e136661fe38a.png)

**To Reproduce**
- https://github.com/vhoyer-bug-reproductions/storybook-tab-reordering

Just run the project on here, if you keep the `storyStoreV7` flag enabled, we get the double bundle, if we turn it off we have just a bunch of "manager" errors.

**System**
<details>
<summary>reproduction</summary>

```
Environment Info:

  System:
    OS: Linux 5.15 Manjaro Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
  Binaries:
    Node: 18.3.0 - /usr/bin/node
    Yarn: 3.2.1 - /usr/bin/yarn
    npm: 8.5.5 - /usr/bin/npm
  Browsers:
    Firefox: 101.0.1
  npmPackages:
    @storybook/addon-actions: ^6.5.9 => 6.5.9 
    @storybook/addon-docs: ^6.5.9 => 6.5.9 
    @storybook/addon-essentials: ^6.5.9 => 6.5.9 
    @storybook/addon-interactions: ^6.5.9 => 6.5.9 
    @storybook/addon-links: ^6.5.9 => 6.5.9 
    @storybook/builder-webpack4: ^6.5.9 => 6.5.9 
    @storybook/manager-webpack4: ^6.5.9 => 6.5.9 
    @storybook/testing-library: ^0.0.13 => 0.0.13 
    @storybook/vue: ^6.5.9 => 6.5.9 
```

</details>

<details>
<summary>my project (inside the container)</summary>

```
Environment Info:

  System:
    OS: Linux 5.15 Debian GNU/Linux 9 (stretch) 9 (stretch)
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
  Binaries:
    Node: 14.17.0 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/local/bin/yarn
    npm: 6.14.13 - /usr/local/bin/npm
  npmPackages:
    @storybook/addon-a11y: ^6.5.9 => 6.5.9 
    @storybook/addon-actions: ^6.5.9 => 6.5.9 
    @storybook/addon-controls: ^6.5.9 => 6.5.9 
    @storybook/addon-docs: ^6.5.9 => 6.5.9 
    @storybook/addon-essentials: ^6.5.9 => 6.5.9 
    @storybook/addon-links: ^6.5.9 => 6.5.9 
    @storybook/addon-viewport: ^6.5.9 => 6.5.9 
    @storybook/addons: ^6.5.9 => 6.5.9 
    @storybook/vue: ^6.5.9 => 6.5.9 
```

</details>

**Additional context**
Add any other context about the problem here.

this is might be related to #15659

cc: @mduenias @designmatty @somenickname @HyperLife1119