Affects Version/s: None
Fix Version/s: None
Component/s: JS APIs and Utilities
WISHLIST ITEM — We don't yet have an immediate need for this, but it is an obvious potential improvement, so I want to make a note of it.
Sibling issue to:
When working on
LPS-130359 I found myself in the original draft PR and in the final version of the PR wanting to have an easy way to inspect/log transactions/actions happening in and around the global store.
In the end, a simple console.log or a breakpoint here or there was all I needed, but there is certainly an argument to be made for having something higher-level, complementing what we already have under Liferay.State._internal_.debug (link).
At the time I write this, I don't have anything specific in mind, but we could take inspiration from the Redux devtools (widely upheld as one of the best things about Redux), or probably more appropriately for our context, the Recoil devtools. I'm not thinking of racing out and building a browser extension for this, but we could certainly have facilities for logging definitions, reads, writes, and so on.