Cant find replace function on toast ref

UI Components for React
Post Reply
orlandolabz
Posts: 1
Joined: 06 Sep 2022, 16:25

06 Sep 2022, 16:32

Hello, im trying to use <Toast />

const toastx = useRef(null)
<Toast ref={toastx} />

but when i log the ref i cant find method replace, any idea what happen here ?
here is the console result
{
"toastx": {
"current": {clear: f(), show: f()}
}
}

thanks

Melloware
Posts: 3299
Joined: 22 Apr 2013, 15:48

07 Sep 2022, 13:59

Works fine on 8.4.0 see my Code Sandbox: https://codesandbox.io/s/primereact-tes ... c/index.js
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.3 / PF Extensions 11.0.3
PrimeReact 8.0.0

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests