In my code I need to update options for a brake already instantiated (to be more specific I need to update the timeoutvalue).
I'm using Brakes internals to do that:
brake._masterCircuit._opts = Object.assign( {}, brake._masterCircuit._opts, newOptions );
Could be a nice to have an updateOptions(opts) method attached to brake instance to have the same result without touching internals.
In my code I need to update options for a brake already instantiated (to be more specific I need to update the
timeoutvalue).I'm using Brakes internals to do that:
brake._masterCircuit._opts = Object.assign( {}, brake._masterCircuit._opts, newOptions );Could be a nice to have an
updateOptions(opts)method attached tobrakeinstance to have the same result without touching internals.