How to use @react-dnd/asap - 1 common examples

To help you get started, we’ve selected a few @react-dnd/asap 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 react-dnd / react-dnd / packages / core / dnd-core / src / HandlerRegistryImpl.ts View on Github external
public removeSource(sourceId: string) {
		invariant(this.getSource(sourceId), 'Expected an existing source.')
		this.store.dispatch(removeSource(sourceId))
		asap(() => {
			this.dragSources.delete(sourceId)
			this.types.delete(sourceId)
		})
	}

@react-dnd/asap

High-priority task queue for Node.js and browsers

MIT
Latest version published 3 years ago

Package Health Score

83 / 100
Full package analysis

Popular @react-dnd/asap functions