Access to initial state in lifecycle hooks

But there is state variable that you can pass from before hook to after hook