Skip to content

Allow use custom isEqual method - #219

Merged
shuding merged 8 commits into
vercel:masterfrom
lllllllqw:is-equal-method
Jan 11, 2020
Merged

Allow use custom isEqual method#219
shuding merged 8 commits into
vercel:masterfrom
lllllllqw:is-equal-method

Conversation

@lllllllqw

Copy link
Copy Markdown
Contributor

#147
Sometimes it is necessary to confirm whether to change the cache based on specific fields.
Maybe add a config attribute?

Comment thread src/config.ts Outdated
Comment thread src/config.ts Outdated
Comment thread src/types.ts Outdated
Comment thread src/use-swr.ts Outdated
Comment thread src/use-swr.ts Outdated
Comment thread src/use-swr.ts Outdated
Comment thread test/use-swr.test.tsx Outdated
lllllllqw and others added 7 commits January 3, 2020 10:14
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Co-Authored-By: Shu Ding <ds303077135@gmail.com>

@shuding shuding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

@shuding
shuding merged commit 002b4c7 into vercel:master Jan 11, 2020
shuding pushed a commit that referenced this pull request Mar 30, 2020
This was implemented in #219 but wasn't documented in the readme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants