Skip to content

Using Redux Provider: id mismatch? #878

Closed
@silouanwright

Description

@silouanwright

Steps to reproduce

Render any react component with a Provider on the server (set prerender as true)

Expected behavior

The component should be generated from the server, then UJS should mount the client version

Actual behavior

screen shot 2018-02-23 at 2 14 48 pm

System configuration

Sprockets or Webpacker version: No version (Latest)
React-Rails version: No Version (Latest)
Rect_UJS version: React-Rails specified.
Rails version: 5.1.4
Ruby version:2.5.0


I'm attempting to pre-render a component with a Provider, but it has issues when UJS tries to automatically mount the client version on top of it.

  • My setup absolutely works outside of redux. Rendering any normal component works.
  • react-on-rails is not only too far of a departure, but it's too battery included, no migration instructions, and I'd like to depend on this more official release.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions