Hi,
I tried to add multiple hooks for my http state source and only the last one would be used.
That's because hooks[hook.id] = hook; is used to store the hook, and omitting an id will of course do something like hooks[undefined] for all my hooks, overwriting the last one.
I think it should be documented in the http state source documentation and/or throw an error/warning.
Hi, I tried to add multiple hooks for my http state source and only the last one would be used. That's because
hooks[hook.id] = hook;
is used to store the hook, and omitting an id will of course do something likehooks[undefined]
for all my hooks, overwriting the last one.I think it should be documented in the http state source documentation and/or throw an error/warning.