render({model, onClick, ...props}, ref) {
        const refreshContextModel = useContextModel(RefreshContextModel);

        if (!onClick) {
            errorIf(model && !model.loadSupport, 'Models provided to RefreshButton must enable LoadSupport.');
            model = withDefault(model, refreshContextModel);
            onClick = model ? () => model.refreshAsync() : null;
        }

        return button({
            ref,
            icon: Icon.refresh(),
            title: 'Refresh',
            intent: 'success',
            onClick,
            ...props
        });
    }
// For consistency with all other buttons -- the model prop here could be replaced by 'target'
For consistency with all other buttons -- the model prop here could be replaced by 'target'
For consistency with all other buttons -- the model prop here could be replaced by ' target '
render({model, onClick, ...props}, ref) {
        const refreshContextModel = useContextModel(RefreshContextModel);
        if (!onClick) {
            errorIf(model && !model.loadSupport, 'Models provided to RefreshButton must enable LoadSupport.');
            model = withDefault(model, refreshContextModel);
            onClick = model ? () => model.refreshAsync() : null;
        }
        return button({
            ref,
            icon: Icon.refresh(),
            title: 'Refresh',
            intent: 'success',
            onClick,
            ...props
        });
    }
render ( { model , onClick , ... props } , ref ) { const refreshContextModel = useContextModel ( RefreshContextModel ) ; if ( ! onClick ) { errorIf ( model && ! model . loadSupport , 'Models provided to RefreshButton must enable LoadSupport.' ) ; model = withDefault ( model , refreshContextModel ) ; onClick = model ? ( ) => model . refreshAsync ( ) : null ; } return button ( { ref , icon : Icon . refresh ( ) , title : 'Refresh' , intent : 'success' , onClick , ... props } ) ; }
For consistency with all other buttons -- the model prop here could be replaced by 'target'
For consistency with all other buttons -- the model prop here could be replaced by ' target '