Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a way to reuse configs across implementations #10

Open
evanbb opened this issue Oct 23, 2021 · 0 comments
Open

Create a way to reuse configs across implementations #10

evanbb opened this issue Oct 23, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@evanbb
Copy link
Owner

evanbb commented Oct 23, 2021

Part of the motivation behind this library is to be able to declare the interface you want in implementation-agnostic terms. It's currently possible to declare a bunch of component registry types and subsequently declare a corresponding configuration. However, it's completely possible to have the types declared but nothing in the runtime registry, resulting in a runtime exception.

Ideally, there would be a way to declare the types and a corresponding configuration, but not be able to, say, use that configuration for anything meaningful (like passing to a component to render) without adding an implementation to the runtime registry. It gets more complicated, though 😭

To pass that configuration to, say, a React component, should we require all configurations have a corresponding React implementation? To what extend can we mix-and-match implementations? E.g., we can potentially proxy data and function calls between an Angular and React component, similarly between Svelte and Custom Elements, etc., but some would work more easily than others out of the box.

Keeping the configuration agnostic of implementation details affords a couple of interesting abilities:

  • Mix/match/swap implementations without touching configurations
  • Reuse configurations across projects built with different implementations (e.g., one in React, another in Swift, another in Java...)
@evanbb evanbb added this to the 1.1 milestone Oct 23, 2021
@evanbb evanbb added enhancement New feature or request help wanted Extra attention is needed labels Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant