mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Add support for using injectionTokens in global overrides
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
3532fc1dab
commit
6ae078c91d
4 files changed
+33
-19
No files matched your search
+6
-5
@@ -43,11 +43,12 @@ export const getRequestChannelListenerInjectable = <
|
||||
getInjectable({
|
||||
id: `${info.channel.id}-request-listener-${info.id}`,
|
||||
|
||||
instantiate: (di) => ({
|
||||
id: `${info.channel.id}-request-listener-${info.id}`,
|
||||
channel: info.channel,
|
||||
handler: info.getHandler(di),
|
||||
}),
|
||||
instantiate: (di) =>
|
||||
({
|
||||
id: `${info.channel.id}-request-listener-${info.id}`,
|
||||
channel: info.channel,
|
||||
handler: info.getHandler(di),
|
||||
} as RequestChannelListener<Channel>),
|
||||
|
||||
injectionToken: requestChannelListenerInjectionToken,
|
||||
});
|
||||
Reference in new issue
Block a user