How to deal with temporary assigns in components?

How should we deal with temporary_assigns in stateful components?

Setting the temporary_assigns in the live view does not seem to clear the assigned variables in the components.

Should we use temporary assigns in components mount function as well?