Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.
This repository was archived by the owner on May 28, 2021. It is now read-only.

advice on how to implement a more complex arrangement #13

@datapimp

Description

@datapimp

Hi, I am sorry if this was elaborated on somewhere and I missed it.

I have what I think is a typical use case for a library like this. A single page application that uses react-router.I have some global key bindings, and then some keybindings which may only be relevant when that page's component is mounted / active

For the purposes of discussion, say it looks like:

- App keybindings: {"ctrl+s": "SAVE"}
  - Router
    - Page
    - Page
    - Page keybindings: {"ctrl+s": "SPECIAL_SAVE" }

Should I not attempt to implement globals and just push all of the keybinding config into the components, and then have the components handle using the global behavior manually in my handler definition?

Please advise. Thank you.

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