jariz / jariz/react-truncate-html
Changing Lines does not change the component
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 50
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Im using react-truncate-html with a slider on my page where a user can define the amount of lines. However the Truncate component seems to cache the data. As the data doesn't change, only the amount of lines it doesn't update to the new amount of lines.
Is it possible to take the change in properties into account?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the Truncate component while changing only its lines property, then trace how the component handles updated props and cached data. Done means the rendered truncation changes to match the new line count without changing the source content; the issue names no file or test path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100