-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks & docs for langauge and hooks #450
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really happy with the hooks docs.
- Should be code comments so that it gets integrated into our reference and shows in IDEs
- The description don't really say much about the hook but just repeat the concept of hooks and have wrong expansions of the ADAM abbreviation (I started fixing this in the change suggestions but stopped at some point).
docs/pages/hooks.mdx
Outdated
|
||
## useClient | ||
|
||
The `useClient` hook is a custom React hook designed to manage state related to fetching and caching an AD4M (Agent-centric Decentralized Data Management) client in React applications. It provides an easy-to-use interface for interacting with the AD4M client, abstracting away the complexities of data fetching, caching, and error handling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `useClient` hook is a custom React hook designed to manage state related to fetching and caching an AD4M (Agent-centric Decentralized Data Management) client in React applications. It provides an easy-to-use interface for interacting with the AD4M client, abstracting away the complexities of data fetching, caching, and error handling. | |
The `useClient` hook provides access to the underlying `Ad4mClient`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's move over / add docs as code comments for the reference in a later PR.
No description provided.