Open DavoCg opened 6 months ago
hey test this syntax
import { create } from "zustand";
interface CounterStore {
count: number | string;
setCount: (item: string | number) => void;
}
export const useCounterStore = create
in your component const { count , setCount } = useCounterStore();
Hello,
This package is using an old zustand version and this message
[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use import { useStore } from 'zustand'.
Would you consider upgrading to last zustand version and using
import { createStore } from "zustand"
instead ofimport create from "zustand/vanilla";
Instead of
It would like
I consumer land it would be used like:
This modification would require some changes in feed code,
Happy to submit a PR if you consider it and don't hesitate to tell me if i miss something