Rewrite old prototype--fixes a bug when parent setState inside callback calls old render