Problems on Flux.destructure()

(you can edit your post)
Please read through the suggestions here: Please read: make it easier to help you

It is hard to search through what is relevant if you just dump all your code like that.
Please

  • properly format your code
  • try to provide only as much as is relevant to the problem/error you observe.

Boiling down the problem to what is relevant will make it easiser to help you (and in the process you might even figure it out yourself)