onNextProps

open override fun onNextProps(newProps: P, previousProps: P)

Called when the component is about to receive new props.

This function is only called when shouldRedraw(nextProps) returns true.

Parameters

newProps

The new props the component just received

previousProps

The previous props the component had