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

act() - s / flushPassiveEffects / Scheduler.unstable_flushWithoutYielding #15591

Merged
merged 17 commits into from May 16, 2019

Commits on May 8, 2019

  1. s/flushPassiveEffects/unstable_flushWithoutYielding

    a first crack at flushing the scheduler manually from inside act(). uses unstable_flushWithoutYielding(). The tests that changes, mostly replaced toFlushAndYield(...) with toHaveYielded(). For some tests that tested the state of the tree before flushing effects (but still after updates), I replaced act() with bacthedUpdates().
    Sunil Pai committed May 8, 2019
    Configuration menu
    Copy the full SHA
    0f1977a View commit details
    Browse the repository at this point in the history
  2. ugh lint

    Sunil Pai committed May 8, 2019
    Configuration menu
    Copy the full SHA
    5e5a68b View commit details
    Browse the repository at this point in the history
  3. pass build, flushPassiveEffects returns nothing now

    Sunil Pai committed May 8, 2019
    Configuration menu
    Copy the full SHA
    37989a5 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2019

  1. pass test-fire

    Sunil Pai committed May 9, 2019
    Configuration menu
    Copy the full SHA
    f5fd513 View commit details
    Browse the repository at this point in the history
  2. flush all work (not just effects), add a compatibility mode

    of note, unstable_flushWithoutYielding now returns a boolean much like flushPassiveEffects
    Sunil Pai committed May 9, 2019
    Configuration menu
    Copy the full SHA
    5003233 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7de2164 View commit details
    Browse the repository at this point in the history
  4. add a comment to Shcduler.umd.js for why we're exporting unstable_flu…

    …shWithoutYielding
    Sunil Pai committed May 9, 2019
    Configuration menu
    Copy the full SHA
    0287733 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2019

  1. Configuration menu
    Copy the full SHA
    3966dcc View commit details
    Browse the repository at this point in the history
  2. augh lint

    Sunil Pai committed May 11, 2019
    Configuration menu
    Copy the full SHA
    9f2d141 View commit details
    Browse the repository at this point in the history
  3. use a feature flag for the missing mock scheduler warning

    I also tried writing a test for it, but couldn't get the scheduler to unmock. included the failing test.
    Sunil Pai committed May 11, 2019
    Configuration menu
    Copy the full SHA
    6920e9f View commit details
    Browse the repository at this point in the history

Commits on May 15, 2019

  1. Update ReactTestUtilsAct-test.js

    - pass the mock scheduler warning test,
    - rewrite some tests to use Scheduler.yieldValue
    - structure concurrent/legacy suites neatly
    Sunil Pai committed May 15, 2019
    Configuration menu
    Copy the full SHA
    690f83e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8198a82 View commit details
    Browse the repository at this point in the history
  3. pass failing tests in batchedmode-test

    Sunil Pai committed May 15, 2019
    Configuration menu
    Copy the full SHA
    53b91d2 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2019

  1. fix pretty/lint/import errors

    Sunil Pai committed May 16, 2019
    Configuration menu
    Copy the full SHA
    12a143a View commit details
    Browse the repository at this point in the history
  2. pass test-build

    Sunil Pai committed May 16, 2019
    Configuration menu
    Copy the full SHA
    d6e43e7 View commit details
    Browse the repository at this point in the history
  3. nit: pull .create(null) out of the act() call

    Sunil Pai committed May 16, 2019
    Configuration menu
    Copy the full SHA
    47e1eed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    763c03e View commit details
    Browse the repository at this point in the history