logux / client

Logux base components to build web client
https://logux.org/
MIT License
656 stars 46 forks source link

Move check for non-empty client to `useClient` #78

Closed AleksandrSl closed 3 years ago

AleksandrSl commented 3 years ago

useClient is the main way to get client and will always be used to get client from context. So there are no reasons to throw this error in the other places. i.e. how would <ClientContext.Provider> help you if you are not using useClient?

ai commented 3 years ago

Wow, it makes everything so much simpler

ai commented 3 years ago

Thanks. Released in 0.13.2.