Skip to content

Commit

Permalink
docs: edit comment about zustand
Browse files Browse the repository at this point in the history
  • Loading branch information
verekia committed Apr 20, 2024
1 parent 319c182 commit fedfbd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Check out the [**React**](https://manapotion.org/), [**Vue**](https://vue.manapo

<!-- - If you use **React Three Fiber**, install `@manapotion/r3f` -->

- If you use **React**, install `@manapotion/react` and `zustand` (v4+)
- If you use **React**, install `@manapotion/react`
- If you use **Vue**, install `@manapotion/vue`
- If you use **Svelte**, install `@manapotion/svelte`
- If you don't use these frameworks, install `@manapotion/vanilla`

The React version of Mana Potion requires [Zustand](https://github.com/pmndrs/zustand) v4 as a peer dependency. If you do not add Zustand v4 in your dependencies and one of your project dependencies uses Zustand v3 (React Three Fiber for instance), you will get an [error](https://github.com/verekia/manapotion/issues/39).
The React version of Mana Potion uses [Zustand](https://github.com/pmndrs/zustand) v4 internally. If one of your project dependencies uses Zustand v3 (React Three Fiber for instance), you will have conflicting Zustand versions and will get an [error](https://github.com/verekia/manapotion/issues/39). In this case, please add `zustand` v4+ to your dependencies.

## Getting started

Expand Down

0 comments on commit fedfbd9

Please sign in to comment.