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

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

        return button({icon, 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, icon = Icon.sync(), onClick, ...props}) {
        const refreshContextModel = useContextModel(RefreshContextModel);
        if (!onClick) {
            errorIf(model && !model.loadSupport, 'Models provided to RefreshButton must enable LoadSupport.');
            model = model ?? refreshContextModel;
            onClick = model ? () => model.refreshAsync() : null;
        }
        return button({icon, onClick, ...props});
    }
render ( { model , icon = Icon . sync ( ) , onClick , ... props } ) { const refreshContextModel = useContextModel ( RefreshContextModel ) ; if ( ! onClick ) { errorIf ( model && ! model . loadSupport , 'Models provided to RefreshButton must enable LoadSupport.' ) ; model = model ?? refreshContextModel ; onClick = model ? ( ) => model . refreshAsync ( ) : null ; } return button ( { icon , 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 '