Create an onChange function for toasts so that users can hook into the following lifecycle phases: * show * update * dismiss