Skip to content

Commit

Permalink
docs: add .setInstances for singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Apr 17, 2020
1 parent 12c4817 commit 128a32e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/src/pages/v6/addons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ const singleton = createSingleton(tippyInstances, {
});
```

#### Update

You can update the singleton's instances with the `.setInstances()` method:

```js
singleton.setInstances(newTippyInstances);
```

#### Destroy

When you call `singleton.destroy()`, the `tippyInstances` you passed as an
Expand Down

0 comments on commit 128a32e

Please sign in to comment.