All warnings are shown only in __DEV__. The `warning()` helper checks `__DEV__` for you but when using console.warn directly you need to check it by hand.

Side note: someone else will probably come along and ask you to change this to `typeof shouldUpdate === "undefined"` because in theory you could redefine it.