Skip to content

Example using React Router #122

Closed
Closed
@andrewdavey

Description

@andrewdavey

Are there any examples of using Nuclear-js with React Router?

It seems like if I have routes such as order/:id then this has moved state out of Nuclear's store and into the route. Is this OK?

Another flow I'm confused about is:

  1. Route /new-order displays a basic form page
  2. Click "Save"
  3. CREATE_ORDER action is dispatched
  4. The store reacts to that action by adding a new order
  5. UI should go to route order/:id, where :id is that of the new order.

Which code should have the responsibility of transitioning routes after order is created?

I guess in general this comes down to who's ultimately in charge, the router, or Nuclear? Any thoughts, pointers, blog posts, etc, you can share will be much appreciated.

By the way, I'm really liking the Nuclear approach to flux in general. So thanks for all the time you guys have put into it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions