useQuery
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
{
headers: {
token: '57bb44dd21d2befb7ca3f010'
}
}{
hero: {
name: 'Cristiano Ronaldo'
}
}{
error: {
statusCode: 401,
error: "Unauthorized",
message: "未登录"
}
}const App = () => {
const { useStore } = counterStore
const count = useStore(S => S.count)
return <span>{count}</span>
}const App = () => {
const { dispatch } = counterStore
return <button onClick={() => dispatch(A => A.decrement)}>-</button>
}TODO:TODO: