Revert "Remove useless hook"

This reverts commit cda79fb259503aa10d6e2fa185d5c50bd4efd25f.

Conflicts:
	index.js