What do I need to do to get Livecoding changes to "stick"?

I am on 5.1, using Rider with UnrealLink and live coding. When I make changes and compile with livecoding, everything works fine in the editor but the next time I open the editor, any changes I made do not show up in the editor. The CPP/H files do not change, and once I open Rider and Build and Reload, the changes are applied in the editor. I am also using Perforce, I’m not sure if that has anything to do with it, but Perforce is enabled in Rider as well.

Watch out when making changes to the header with live coding enabled. It’s usually mentioned that header modifications can be volatile and it’s suggested to close down the editor while making changes there.

cpp internal function modifications should be fine though.

Well, I tested it by adding a debug print in the CPP file; It didn’t stick after restarting the editor. I think I just have to remember to close the editor, then build in Rider before closing it at the end of the day.