How to use the @devexperts/remote-data-ts.isPending function in @devexperts/remote-data-ts

To help you get started, we’ve selected a few @devexperts/remote-data-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github devexperts / dx-platform / packages / react-kit / src / components / render-remote-data / render-remote-data.component.tsx View on Github external
public render() {
		const { data } = this.props;
		return (
			
				{isPending(data) && this.renderPending()}
				{isSuccess(data) && this.renderSuccess(data.value)}
				{isFailure(data) && this.renderFailure(data.error)}
			
		);
	}