Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useEffect(() => {
view && view.change('dataSource', vega.changeset().remove(() => true).insert(dataSource))
view && view.resize();
view && view.runAsync();
}, [view, dataSource])
return <div></div>