Skip to content

Proposal: Return UJS as a public API #116

@robrobbins

Description

@robrobbins

Doing a SPA with react I have found it beneficial to have unmountReactComponents publicly accessible. I have modded the react_ujs file in this project to do this easily enough. I think there is an interesting discussion that can take place around this:

  1. making it a 'revealing module pattern' is simple but where should it live really? A ReactUjs obj ? I actually just append it to React itself as React.ujs accessing them, obviously, as React.ujs.unmountComponent etc...

  2. I realize this may be outside of the scope you want to address with the gem. That being the case I can fork and maintain it separately

  3. If interested I can work up a PR with the appropriate tests

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