prevstate

using funcional you can still access your prevstate