The effect function to perform when the state is entered.

Type declaration