Closed AustinGitHub closed 1 month ago
Hi @AustinGitHub, I'm not seeing this issue on my end locally - can you provide the exact steps to replicate the bug? Thanks!
Yes, all I did was keep saving file inside of something like InlineEditCell.js
and I had a console log at the preview.js
for the pkg-prefix
value.
When we keep saving, it does re-render auto refresh so the preview.js
keeps getting called which therefore keeps appending the prefix over again
@annawen1 were you able to reproduce it? Thanks!
@AustinGitHub hmm I followed the steps you provided and not seeing the issue occurring - I see the prefix console.logged once when storybook is loaded and that's it; I don't see it being console.logged with each save
I will get a new video and link here
Here is a gif I took since video was too large (Gif sped up a bit to meet 10mb file size) . Maybe some code changes went in to fix on inlineEditCell.js
but I do see it still occur inside of preview.js
which is still related to this issue.
Following that, if I did save in preview.js
and then inside of inlineEditCell.js
it messes up the UI because the class names get messed up
So I'm able to see the issue on my end now, but only if I do a save in the preview.js
file - otherwise saving from other component files doesn't trigger a re-render of the preview.js
and there's no style issues as the prefix remains the same.
https://github.com/carbon-design-system/ibm-products/assets/10100397/11b858f1-fbfc-4a0c-b3ec-e33fad1cab8d