You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{useEffect}from'react';importPropTypesfrom'prop-types';constDemoComponent=(props)=>{useEffect(()=>{console.log('========================')console.log('DemoComponent is redrawning');})return<div>DemoComponent</div>;}DemoComponent.propTypes={/** * Component id. */id: PropTypes.string,loading_state: PropTypes.shape({/** * Determines if the component is loading or not */is_loading: PropTypes.bool,/** * Holds which property is loading */prop_name: PropTypes.string,/** * Holds the name of the component that is loading */component_name: PropTypes.string}),/** * Dash-assigned callback that should be called to report property changes * to Dash, to make them available for callbacks. */setProps: PropTypes.func};DemoComponent.defaultProps={}exportdefaultDemoComponent;
In the following case, useEffect is executed a lot more times in 2.16 than 2.15:
Consider the following demo component:
In the following case, useEffect is executed a lot more times in
2.16
than2.15
:in
2.15
:in
2.16
:@T4rk1n @alexcjohnson
The text was updated successfully, but these errors were encountered: