Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-131056

Add global debug facility to Liferay.State APIs

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JS APIs and Utilities
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              greg.hurrell Greg Hurrell (Inactive)
              Recent user:
              Greg Hurrell (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package