If you have a widget within a widget like this:
and you find that after making some changes in the child widget, those changes are not reflected to the instance of it that lives in the parent widget, it may not be a problem with your code.
If there are no dependences on the widget you can cut and paste it - that may force it to update. If you can’t cut and paste without breaking stuff, try restarting the editor. That will force it to update as well.
I don’t know if there is a better way to force the refresh, but just be aware of this problem so you don’t waste time troubleshooting your code when there isn’t actually a problem.