usePersistedSetting
Example
import { useFilter, usePersistedSetting } from "@olenbetong/appframe-react";
function MySettingComponent() {
let [includeClosed, setIncludeClosed] = usePersistedSetting(
"includeClosed",
false
);
useFilter(dsIssues, includeClosed ? "" : "[Closed] IS NULL");
return (
<FormControlLabel
control={
<Checkbox
value={includeClosed}
onChange={(_, checked) => setIncludeClosed(checked)}
/>
}
label="Include closed issues"
/>
);
}API
Last updated
Was this helpful?