elastic / uptime

This project includes resources and general issue tracking for the Elastic Uptime solution
12 stars 3 forks source link

[Synthetics UI] Investigate/remove exhaustive deps comment from enable/disable hook #476

Closed justinkambic closed 2 years ago

justinkambic commented 2 years ago

Describe the bug Not a bug per se but an implementation detail that we called out in review. The code in question was already in prod, so we did not deem it necessary to hold up that PR. That said, I have not been back to investigate/fix this and wanted to make sure it did not go unresolved indefinitely.

To Reproduce Steps to reproduce the behavior:

  1. This is a code-level issue that isn't user facing, so is low priority.

The chief concern here is that, while in the original implementation we may have a single dep or two that we want to skip re-firing the event for, in future changes we could add additional dependencies to the hook that will also be skipped. This can cause erratic and difficult-to-debug behavior that we should avoid if possible.

Expected behavior We'd remove this "skip-linting" comment and use all dependencies, or re-engineer the implementation a way that we can avoid whatever problems the original skip was intended to circumvent.

Debug logs N/A