You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install Preact DevTools into Brave (I haven't tested other browsers).
Run the above app.
Open Preact dev tools.
Select the App component in the Elements tab.
Notice that you can see the useSignal hook in the sidebar.
Click the Increment button in the app.
Notice that the counter doesn't increase.
Click on the App component in the Elements tab again.
Notice that the counter incremented.
Notice that the useSignal hook no longer shows up in the side bar.
Click the Increment button again.
Notice an error in the console TypeError: t.setState is not a function
Uncaught TypeError: t.setState is not a function
at r.c (index.ts:149:15)
at t (index.ts:63:13)
at e.set (index.ts:321:5)
at Object.onClick [as clickfalse] (App.tsx:24:37)
at HTMLButtonElement.I (props.js:150:27)
The text was updated successfully, but these errors were encountered:
I'm guessing that the act of clicking on the component in the Elements tab of Preact dev tools results in a hook being installed into the Signal, and that hook installation is somehow broken. I spent some time trying to debug the issue, but since the debug tools source code is minified it is quite difficult.
App
component in theElements
tab.useSignal
hook in the sidebar.Increment
button in the app.App
component in theElements
tab again.useSignal
hook no longer shows up in the side bar.Increment
button again.TypeError: t.setState is not a function
The text was updated successfully, but these errors were encountered: