Git Product home page Git Product logo

Comments (7)

ctrlplusb avatar ctrlplusb commented on May 28, 2024 1

Definitely should resolve. Sorry was half way through updating react-jobs. Will do and then post an example for you on how to interop the two. I'll probably link the example with react-async-bootstrapper - since that is the "standard" interop interface between the two.

from react-tree-walker.

ctrlplusb avatar ctrlplusb commented on May 28, 2024 1

Hey @oyeanuj

You are the definition of patience. 😃

I am trying to throw up a razzle based example now, using react-async-component as well as react-jobs. 👍

from react-tree-walker.

ctrlplusb avatar ctrlplusb commented on May 28, 2024 1

Ok, got it working. :)

Demo: https://razzle-async-components-and-data.now.sh/

Source: https://github.com/ctrlplusb/demo-react-async-and-jobs

I also added emotion for good measure.

from react-tree-walker.

ctrlplusb avatar ctrlplusb commented on May 28, 2024

Apologies @oyeanuj been so busy!

from react-tree-walker.

oyeanuj avatar oyeanuj commented on May 28, 2024

@ctrlplusb No worries, hope you get a chance soon :)

from react-tree-walker.

oyeanuj avatar oyeanuj commented on May 28, 2024

@ctrlplusb Just checking in for an update here? Not sure if you are done updating react-jobs, but an example would be super helpful since this prevents SSR with data-fetching right now :(

from react-tree-walker.

oyeanuj avatar oyeanuj commented on May 28, 2024

@ctrlplusb I've had a chance to drill down more into this and I have one quick question to ask, and observation to report:

Theoretically, should a setup like this work with react-jobs and react-async-bootstrapper on the server-side?

<App>
  <Auth> /* <--- Fetch data */
    <ListingPage> /* <--- Fetch data */
      <MovieOne /> /* <--- Fetch data */
      <MovieTwo /> /* <--- Fetch data */
  </Auth>
<App>

I'm noticing that the after the first pass of react-jobs, the asyncBootstrapper is considering its job over before rest of the jobs have a chance to resolve and render their children.

Any ideas or thoughts would be super useful!

from react-tree-walker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.