How do i replicate set static mesh?

I encountered the same problem but the only solution I found was to create an Actor which has a static mesh Component, and a Mesh variable. The Mesh Variable is set to RepNotify and whenever it updates, set runs the set static mesh function on the component. Edit: this is only needed when using a dedicated server. Otherwise setting the component to replicate works fine.