adding client-side hook whenever composer renders a preview