Generate code hooks for update components and fields