Replies: 2 comments 5 replies
-
Before working on it, the discussion should be converted to Feature and approved (see https://github.com/CommunityToolkit/Maui#submitting-a-new-feature) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context: I am working on a BottomSheet ( #143 ) component
What are the current recommended guidelines for dependency injection for community toolkit components?
If my component needs to use (for example)
IDeviceDisplay
, should I addservices.AddSingleton<IDeviceDisplay>(DeviceDisplay.Current);
to theUseMauiCommunityToolkit
extension-method, or should I add IDeviceDisplay in the constructor of my component and let it up to the dev/project using the component to resolve IDeviceDisplay?Beta Was this translation helpful? Give feedback.
All reactions