Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-380

Allow to call the Toast object without passing it as a prop

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Technical Debt

      Description

      The Root component should register the Toast ref when it can, something like:

      Toast.registerToast(ref);
      

      After that, in any JS file, we should be able to do:

      import Toast from '../Toast';
      ...
      Toast.call[Toast](...)
      

      We could probably change the method signature to pass an options object with default values instead of arguments

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: