Svelte Store Configuration Docs are out of date (or just confusing)

I’m trying to configure a store for using Svelte in my plugin and I am following the guide for doing so here, and unfortunately I cannot get it to work by following the listed instructions. What I find particularly confusing is this section:

class ExampleView extends ItemView {
  // ...

  async onOpen() {

// ...

It is confusing because this.plugin is undefined. Am I supposed to pass the parent plugin in as a prop to the view? This documentation should be updated to reflect the latest version of the Obsidian API or to clarify this point.

For dev docs issues, you can send an issue or a pull request to their GitHub repo. And there seems to be another Svelte-related issue by someone as well.