-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
Description
Hi - is there anyway to have this be called (or run) only if an error happens and only when the state is actually being submitted?
I ask because my state can get a little large and in testing I've occasionally hit the 'Request Entity too Large' error. So, I've set up a function that removes a couple of fields from my state before passing to Raven. But it is an iterative function and therefore potentially expensive so I'd prefer not to run it every time my state changes.
I guess I could use some shallow checking on the parts of the state I'm interested in, but I wonder if there's a better way?