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

Support custom promise as remote value #9

Open
ScriptedAlchemy opened this issue Feb 28, 2022 · 0 comments
Open

Support custom promise as remote value #9

ScriptedAlchemy opened this issue Feb 28, 2022 · 0 comments

Comments

@ScriptedAlchemy
Copy link
Member

Currently I support a single string syntax as the input. Remote: global@url

Adding support for a promise new promise value would enable managed modules and other at runtime decisioning

Remote: “promise new Promise(res=>{
 fetch(‘someapi’�).then(()=>{
 Return ‘global@http://‘ 
}).then((dynamicConfig)=>{
Res(dynamicConfig)
})
})”

The idea here is that i still end up returning the current @ string syntax to the internal plugin mechanism. So all other parsing and setup can still be done, but would provide a functional way to determine what the string should be

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