react-copy-write icon indicating copy to clipboard operation
react-copy-write copied to clipboard

Ideas for middleware.

Open pksjce opened this issue 6 years ago • 2 comments

Kudos to you for making this lib! I'm loving the mutating abilities. I want to talk about having some middleware like abilities or hooks to the update function to implement common functionality among all mutations. Two use cases that I wanted particularly were

  1. Logger/debug tool
  2. Crash reporter.

Did you have any plans of supporting such a thing? Would you be interested in a PR if I worked on it?

pksjce avatar Apr 29 '18 04:04 pksjce

I'm am definitely in favor of supporting middleware! Thanks for opening this issue, and a PR. I'll review it as soon as I can.

aweary avatar Apr 29 '18 20:04 aweary

Cool! The PR is pretty raw. You may or may not approve of the approach. I will polish it up after your feedback.

pksjce avatar Apr 29 '18 23:04 pksjce