ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
18 lines • 362 B
JavaScript
import { useContext } from 'react';
import { SaveContext } from './SaveContext';
/**
* Get the save() function and its status
*
* Used in forms.
*
* @example
*
* const {
* save,
* saving
* } = useSaveContext();
*/
export var useSaveContext = function (_props) {
return useContext(SaveContext);
};
//# sourceMappingURL=useSaveContext.js.map