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

Implement server-side rendering support #261

Merged
merged 11 commits into from
Jun 6, 2019
Merged

Commits on Jun 5, 2019

  1. Implement toSuspenseSource for React Suspense

    This accepts a Wonka source and throws a promise
    if the result is not resolving immediately. This
    is done for suspensen and will also limit the
    source to a single result.
    
    If the source pushes a value synchronously it
    is let through and won't throw a promise, which
    also will subsequently let through more values
    from the source.
    kitten committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    16689cf View commit details
    Browse the repository at this point in the history
  2. Add suspense mode to Client

    kitten committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    41c1b1e View commit details
    Browse the repository at this point in the history
  3. Implement an SSR exchange

    This can be used on the client and the server;
    On the server it can start caching results,
    while on the client it retrieves cached results
    from a rehydrated cache.
    kitten committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    566c653 View commit details
    Browse the repository at this point in the history
  4. Add tests for SSR exchange

    kitten committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    b55cb7b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1c9e395 View commit details
    Browse the repository at this point in the history
  6. Add some smoke tests for SSR

    kitten committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    6584c13 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    654bef9 View commit details
    Browse the repository at this point in the history
  8. Add SSR data serialization

    kitten committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    8f1cf0d View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2019

  1. Reverse order of cached and forwarded ops in ssrExchange

    This was a whoopsie..
    The order of cachedOps$ and forwardedOps$ in ssrExchange
    is now reversed. It has been completely swapped to indicate
    that the order is important, but only the reverse merge
    matters.
    
    Essentially on the client we would delete the result from
    the cache in cachedOps$ but then check for whether it was
    cached again in forwardedOps$. This would unfortunately
    duplicate the operation.
    kitten committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    5ed84ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ad14cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e6f67e1 View commit details
    Browse the repository at this point in the history