ShinyChang/React-Text-Truncate

Reactjs & "react-router-cache-route";

Mortuie opened this issue · 3 comments

When returning back to the original page with textTruncate active, the text disappears.

The span created by the TextTruncate package, doesn't appear in the inspect element DOM and has vanished. Any explanation/fix as to why this has happened ?

react-text-truncate will dynamic calculate the text once mounted, I'm not sure what react-router-cache-route did internally. Maybe you can try to resize the window after you back to original page and see it will appear or not.

It does indeed work on resize, but this is no fix to a production ready application

have you tried without react-router-cache-route? Sorry, I'm not familiar with react-router-cache-route. Need more time to investigate what't the root cause. Will be better if you can provide me the CodeSandbox to test the issue.