Set lore component from data storage

I want to set the minecraft:lore component of an item (in the players inventory so no data modify) from a data storage. Previously i would have done this using and item modifier and the copy nbt function, but that no longer exists since we got components. Is there a more efficient way of doing this other than copying the item into a container and then doing data modify from there?
Continue to help post