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

Pass (at least some) config inside start() function instead of copilot() #260

Open
didac-wh opened this issue Nov 8, 2022 · 0 comments
Open

Comments

@didac-wh
Copy link

didac-wh commented Nov 8, 2022

Is your feature request related to a problem? Please describe.
Some configurations, like "verticalOffset" or "labels" may depend on the state of a component or context.
For example, a language selection that changes without a full-reload happening after.

Describe the solution you'd like
It makes sense to me to pass those kind of mutable configs/settings inside the start() function, which is invoked in the component, therefore having the capabilities that React Hooks provides.

Describe alternatives you've considered
I propose to keep the current behaviout, but also allow the configs to be passed inside the start() function, and as a consequence, copilot to update the labels/offsets/other as soon as the passed state changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant