Hello I was using your module but had some issues when using a resource (resource.Get..) as a an argument for .icon. When looping over pages and using the page bundle resources icon the icon would repeatedly show the first input.
I cloned your code and messed around until I noticed that just replacing partialCached with partial seemed to fix the issue.