1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix listener ID clash potential

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-10-11 10:06:02 -04:00
parent a615b156e6
commit 73ffad8e08
2 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export function getRequestChannelListenerInjectable<
Response,
>(info: GetRequestChannelListenerInjectableInfo<Channel, Request, Response>) {
return getInjectable({
id: `${info.channel.id}-listener`,
id: `${info.channel.id}-listener-for-${info.handlerInjectable.id}`,
instantiate: (di) => ({
channel: info.channel,
handler: di.inject(info.handlerInjectable),