Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mortuie opened this issue Aug 3, 2020 · 3 comments
Open

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

Mortuie opened this issue Aug 3, 2020 · 3 comments
Labels

Comments

@Mortuie
Copy link

Mortuie commented Aug 3, 2020

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 ?

@ShinyChang
Copy link
Owner

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.

@Mortuie
Copy link
Author

Mortuie commented Aug 4, 2020

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

@ShinyChang
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants