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

Rebind is broke when upgraded from v5 to v6 #1514

Open
nitzcard opened this issue Jun 2, 2023 · 3 comments
Open

Rebind is broke when upgraded from v5 to v6 #1514

nitzcard opened this issue Jun 2, 2023 · 3 comments
Assignees
Milestone

Comments

@nitzcard
Copy link

nitzcard commented Jun 2, 2023

I tried upgrading from inversify 5 to 6, and now I see all the .rebind in my system do not work properly.
The entity being rebinded, but when consumed thought another class later on, it still gets the first binding of the class.

illustration:

di.bind('config').toConstantValue(7)
di.rebind('config').toConstantValue(8)
di.resolve('classThatUsingConfig') => config = 7

expected: config = 8 inside classThatUsingConfig

@weyert
Copy link

weyert commented Dec 5, 2023

Did you ever found a solution for this?

@Jameskmonger Jameskmonger self-assigned this Dec 17, 2023
@Jameskmonger Jameskmonger added this to the 6.0.3 milestone Dec 17, 2023
@Jameskmonger
Copy link
Member

Thanks for the report @nitzcard @weyert, I will investigate this and aim to resolve in the 6.0.3 release.

@weyert
Copy link

weyert commented Dec 17, 2023

@Jameskmonger Thank you, that would be great.

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

No branches or pull requests

3 participants