Is there any reason to use `temporary_assigns` anymore now that we have streams?

The title says it all.

From what I can tell, “temporary assigns” was the old way of rendering collections without needing to keep them all in-memory. But this isn’t necessary anymore, because we can now do it with streams.

Is there any use case where I might still want to use temporary assigns, or have they been completely superseded by streams?

1 Like

It can still be useful for heavy objects that you don’t want to keep in memory.
One example: I have an account screen that loads up a ton of associations on an account to build out a dashboard, but I don’t need all the associated data to remain in memory, so I keep the non-preloaded account in temporary assigns.