react-toastr
react-toastr copied to clipboard
Unknown props toastMessageFactory, toastType, preventDuplicates, newestOnTop
warning.js:44 Warning: Unknown props toastMessageFactory, toastType, preventDuplicates, newestOnTop on
tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop in div (created by ToastContainer) in ToastContainer (created by Notification) in Notification (created by ToolBar) in div (created by ToolBar) in ToolBar (created by BootstrapTable) in div (created by BootstrapTable) in div (created by BootstrapTable) in BootstrapTable (created by ListShipments) in div (created by ListShipments) in ListShipments (created by Dashboard) in div (created by Dashboard) in div (created by Dashboard) in div (created by Dashboard) in Dashboard
@jonasostrom Kindly share the version of React you are using.
devDependencies": { "babel-core": "6.11.4", "babel-preset-es2015": "6.9.0", "babel-preset-react": "6.11.1", "babel-register": "6.11.6", "babelify": "7.3.0", "browser-sync": "2.14.0", "browserify": "13.1.0", "eslint": "3.2.2", "eslint-plugin-react": "6.0.0", "exorcist": "0.4.0", "gulp": "3.9.1", "gulp-eslint": "3.0.1", "gulp-if-else": "1.0.3", "gulp-uglify": "2.0.0", "jquery": "2.2.4", "react": "15.3.0", "react-dom": "15.3.0", "react-router": "2.6.1", "vinyl-buffer": "1.0.0", "vinyl-source-stream": "1.1.0", "watchify": "3.7.0", "angular": "1.5.8", "gulp-autoprefixer": "3.1.0", "gulp-concat": "2.6.0", "gulp-cssnano": "2.1.2", "gulp-imagemin": "3.0.2", "gulp-livereload": "3.8.1", "gulp-newer": "1.2.0", "gulp-notify": "2.2.0", "gulp-plumber": "1.1.0", "gulp-sass": "2.3.2", "bootstrap": "4.0.0-alpha.2", "babel-preset-stage-0": "6.5.0", "classnames": "2.2.5", "tether": "1.3.3", "react-bootstrap-table": "2.3.9", "react-dropzone": "3.5.3" },
I'm using React-15.4.1 and am running into this as well. What's weird is I only get it on initial load. I also confirmed that I'm using the latest version of react-toastr, which has the fix you linked to.
i'm using [email protected] and [email protected]
i'm getting this error
Warning: Unknown props `newestOnTop`, `positionClass`, `closeMethod` on <div> tag. Remove these props from the element.
reproduced also in react 16
ok, i just figure this out.
in the last versions the API was changed:
newestOnTop
-> moved from toast-options to ToastContainer
property
preventDuplicates
-> moved from toast-options to ToastContainer
property
closeMethod
-> replaced by hideMethod
positionClass
-> replaced by className
and the issue is react-toastr print all unknown props to the DOM...