Does it happen in a new project? If it does, please send it to us as a sample
-
-
Replying to @WebStormIDE
It happens in each and every React project I have. I can convert from functional to class, but not the other way.
1 reply 0 retweets 0 likes -
Replying to @stevensacks
Can you please check if it works for something as simple as: https://gist.github.com/prigara/33b120d5a8fc9498c6e5065fc826836c … In general, this action is available only when the component doesn't reference the state and doesn't have any members other than render, propTypes, or defaultProps. Thanks!
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
Ok, I’ve discovered the following. If I put the caret within the name of the component, convert to class component is there. If I put the caret within the keyword “class”, convert to functional component shows up. I expected it to show up within the component name. Is that a bug?
1 reply 0 retweets 1 like -
Replying to @stevensacks
Sounds like a bug, but we still can't reproduce it neither with a simple nor with a more complex component
(on the screenshot the cursor is inside `Welcome`)pic.twitter.com/OmES1F8fdU
1 reply 0 retweets 1 like -
Replying to @WebStormIDE
It’s convert from class to functional that is a problem for me with the caret in the name of the component vs inside of the word “class”.
1 reply 0 retweets 0 likes -
Replying to @stevensacks
Sorry, wrong screenshot, but it still works fine for us :( We are testing it in WebStorm 2019.1.3.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Yeah not for me.
I can only convert from class to functional if the caret is inside of the word “class”. I can go the other way anytime.1 reply 0 retweets 0 likes -
-
We've kept trying to reproduce it, but no luck. There's no extra logic in the intention's code that could explain this behaviour. Do you have any custom plugins installed?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.