Skip to content

Commit

Permalink
fix readme typo, add memo busting to changelog v4 entry
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredh159 committed Feb 15, 2024
1 parent c7587fc commit 63af025
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project ad

> See [migration guide](./migration-guide.md) for upgrading instructions.
### Added

- `tw.memoBuster` property for breaking memoization, [see here](./readme.md#memo-busting)
for more details.

### Fixed

- media-query off by one pixel error
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ More detailed instructions, including how to add snippets, are available

If you're using device-context prefixes (like `dark:`, and `md:`), _memoized_ components
can cause problems by preventing re-renders when the color scheme or window size changes.
You may not be memoizing explicitly yourself as many third-party librarys (like
`react-navigation`) memoizes its own components.
You may not be memoizing explicitly yourself as many third-party libraries (like
`react-navigation`) memoizes their own components.

In order to help with this problem, `twrnc` exposes a `.memoBuster` property on the `tw`
object. This string property is meant to passed as a `key` prop to break memoization
Expand Down

0 comments on commit 63af025

Please sign in to comment.