Open nitzcard opened 1 year ago
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
Did you ever found a solution for this?
Thanks for the report @nitzcard @weyert, I will investigate this and aim to resolve in the 6.0.3 release.
6.0.3
@Jameskmonger Thank you, that would be great.
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:
expected: config = 8 inside classThatUsingConfig