supertokens / supertokens-auth-react

ReactJS authentication module for SuperTokens
https://supertokens.com
Other
260 stars 81 forks source link

feat: skip unnecessary updates in SessionAuth #831

Closed porcellus closed 1 week ago

porcellus commented 1 week ago

Summary of change

skip unnecessary updates in SessionAuth

Related issues

Added an extra test that replacates a case we've seen on a user call: running signout on context updates that have doesSessionExist === false. This used to trigger an infinite re-render loop.

Documentation changes

None, this is a small optimization that people should not rely on.

Checklist for important updates

github-actions[bot] commented 1 week ago

size-limit report 📦

Path Size
lib/build/index.js 22.48 KB (+0.22% 🔺)
recipe/session/index.js 23.23 KB (+0.18% 🔺)
recipe/session/prebuiltui.js 27.77 KB (+0.14% 🔺)
recipe/thirdparty/index.js 27.76 KB (0%)
recipe/emailpassword/index.js 11.07 KB (0%)
recipe/emailverification/index.js 7.84 KB (0%)
recipe/passwordless/index.js 14.76 KB (0%)
recipe/emailverification/prebuiltui.js 32.46 KB (+0.16% 🔺)
recipe/thirdparty/prebuiltui.js 47.67 KB (+0.07% 🔺)
recipe/emailpassword/prebuiltui.js 38.54 KB (+0.14% 🔺)
recipe/passwordless/prebuiltui.js 125.88 KB (+0.04% 🔺)
recipe/multitenancy/index.js 6.67 KB (0%)
recipe/multifactorauth/index.js 10.77 KB (0%)
recipe/multifactorauth/prebuiltui.js 31.31 KB (+0.14% 🔺)