Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Export single modules of sdk #486

Open
LukasHirt opened this issue Jun 5, 2020 · 1 comment
Open

Export single modules of sdk #486

LukasHirt opened this issue Jun 5, 2020 · 1 comment

Comments

@LukasHirt
Copy link
Contributor

Currently, we are exporting a whole sdk as one single export and then use it globally in the web app. This leads to a need of passing around the sdk context between different parts which haven't got the access to it. A perfect example of this is the store. This is a bit tedious and it would be great if we could import the required modules directly when needed.

@LukasHirt
Copy link
Contributor Author

Another advantage we could get with this would be tree shaking. It would probably require a different approach to storing some of the values in helpers. Maybe in a window object? Thoughts @kulmann @fschade ?

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

No branches or pull requests

1 participant