Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useSubscription hook #15022

Merged
merged 18 commits into from
Jul 16, 2019
Merged

useSubscription hook #15022

merged 18 commits into from
Jul 16, 2019

Commits on Jul 15, 2019

  1. Added useSubscription reference hook and tests

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    c35b054 View commit details
    Browse the repository at this point in the history
  2. Fixed a race case in useSubscription. Converted tests from Noop to Te…

    …st renderer.
    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    f768b57 View commit details
    Browse the repository at this point in the history
  3. Fixed an additional unmount edge case. Moved hook into temporary pack…

    …age.
    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    00c38dd View commit details
    Browse the repository at this point in the history
  4. Updated useSubscription API to require deps array

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    0ee0bab View commit details
    Browse the repository at this point in the history
  5. Revert "Updated useSubscription API to require deps array"

    This reverts commit 87f7c31.
    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    da060ab View commit details
    Browse the repository at this point in the history
  6. Tidied things up, added Flow types, etc

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    245b707 View commit details
    Browse the repository at this point in the history
  7. Add return type to useSubscription

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    97e9d07 View commit details
    Browse the repository at this point in the history
  8. Refactored useSubscription to remove explicit source param and rely o…

    …n useMemo
    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    345a67a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1ad3743 View commit details
    Browse the repository at this point in the history
  10. Renamed react-hooks package to use-subscription

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    6d1de39 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b827015 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    78f425e View commit details
    Browse the repository at this point in the history
  13. Use lazy initializer function for useState to avoid calling getCurren…

    …tValue() unnecessarily
    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    a6307a8 View commit details
    Browse the repository at this point in the history
  14. Added useDebugValue() to useSubscription() hook

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    c161880 View commit details
    Browse the repository at this point in the history
  15. Updated Scheduler method names

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    0f1258f View commit details
    Browse the repository at this point in the history
  16. Updated tests to account for changes in Act

    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    b6471bc View commit details
    Browse the repository at this point in the history
  17. Reset useSubscription package version to 0.0.0

    We will update it to 1.0.0 as part of the first release (with 16.9)
    Brian Vaughn committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    1d1ded9 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2019

  1. Added README with examples

    Brian Vaughn committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    c88a936 View commit details
    Browse the repository at this point in the history