The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
110 stars 36 forks source link

Updated Documentation for useFrappeGetCall Hook #10

Closed saleemdev closed 1 year ago

saleemdev commented 1 year ago

Used the full Hook reference :


const params = {
  doctype: "Currency",
  txt: "IN"
};
const method = "'frappe.desk.search_link'";
const { data, error, isValidating, mutate } = useFrappeGetCall(method, params);
if (isValidating) {
  return <>Loading</>;
}
if (error) {
  return <>{JSON.stringify(error)}</>;
}
if (data) {
  return <>{JSON.stringify(data)} </>;
}```
nikkothari22 commented 1 year ago

Tried using this but there are too many formatting changes in the README.