That’s a whole other question. The replicators of TNG era weren’t protein resequencers like they were in Enterprise. They were simple matter/energy conversion. They would reclaim the matter and store any remaining energy in the ship’s reserves.
In Voyager they said the holodecks ran on a completely separate power supply than the rest of the ship, so maybe they never really intermingled with the replicator systems
That’s a whole other question. The replicators of TNG era weren’t protein resequencers like they were in Enterprise. They were simple matter/energy conversion. They would reclaim the matter and store any remaining energy in the ship’s reserves.
In Voyager they said the holodecks ran on a completely separate power supply than the rest of the ship, so maybe they never really intermingled with the replicator systems