koin-annotations icon indicating copy to clipboard operation
koin-annotations copied to clipboard

Fix issue where binds = [] has no effect

Open mori-atsushi opened this issue 1 month ago • 0 comments
trafficstars

@Single(binds = []) and @Factory(binds = []) are expected to clear all bindings, but currently, all supertypes are still registered.

To resolve this, remove the isNotEmpty() check from the forceDeclaredBindings condition so that an empty binds array works as intended.

mori-atsushi avatar Oct 19 '25 12:10 mori-atsushi