Call onSync immediately during publish