useFilter
Example
import { useFilter } from "@olenbetong/appframe-react";
function MyComponent({ id }) {
useFilter(dsMyDataObject, id ? `[ID] = ${id}` : false);
return <p>Getting data for id {id}</p>;
}import { useFilter } from "@olenbetong/appframe-react";
function MyComponent({ id }) {
useFilter(
dsMyDataObject,
id ? { type: "expression", column: "ID", operator: "equals", value: id, valueType: "number" } : false,
"filterObject"
);
return <p>Getting data for id {id}</p>;
}Disable auto load
Example
API
Hook parameters
Name
Type
Optional
Description
FilterOrOptions
Last updated
Was this helpful?