Fix: Uncaught Unknown event type: beforePortalReRender

Added beforePortalReRender to VALID_HOOKS to fix this error.