Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1814

Improve usability of the UserProvider

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Realm React

      Problem

      When using useUser without using the UserProvider component, no error message is sent and the result of useUser is always know.

      Solution

      I propose two possible solutions:

      • Find a way to throw an error message if useUser is invoked without the UserProvider
      • Merge the UserProvider component into the AppProvider to simplify the setup even further

      How important is this improvement for you?

      Would be a major improvement

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.meyer@mongodb.com Andrew Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: