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

[Question]: How can I load a dynamic number of configurations from a custom service? #1619

Open
lordrhodos opened this issue Nov 30, 2022 · 3 comments
Labels

Comments

@lordrhodos
Copy link

What Version of the library are you using?
13.1.0

Question
How can I load an dynamic (unknown att app startup) number of configurations from an external api?

I have read the documentation, examples and issues about how to use the StsConfigHttpLoader to load one or multiple configurations via an async http call, but I wonder if there is any possibility to support the following scenario.

I have an app with a landing page where a list of current project is displayed. This landing page does not require any authorization and will never reqiure that in the future. Opening one of the projects starts the same app in a new tab within the project context. This is setup as a lazy loading module and an attached project resolver.

Important: a project may require authentication or not.

So I have a dynamic / unknown number of configurations which I would like to configure.

I would happy about any pointers / directions how to solve this. Only solution I see right now would be to split the application into an overview application and an application that serves the project context, but I would like to avoid that if possible.

Thanks for your feedback 🙏

@lordrhodos lordrhodos changed the title [Question]: How can I load a dynamic number of configuration from a custom service? [Question]: How can I load a dynamic number of configurations from a custom service? Nov 30, 2022
@lordrhodos
Copy link
Author

Found a comment here and will give this a try.

@FabianGosebrink
Copy link
Collaborator

Were you successful with this?

@lordrhodos
Copy link
Author

@FabianGosebrink not yet, I ended up to add the known number of observables for the time being. But the work on it is on hold for a couple of weeks, so I will hopefully get to look into it further soon.

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

No branches or pull requests

2 participants