@redzone/taunt-logins-ui-react 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +3 -1
- package/dist/es/index.js +3 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -552,7 +552,9 @@ function ModalView({ title, content, onClose }) {
|
|
|
552
552
|
|
|
553
553
|
const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
554
554
|
const [deets, setDeets] = react.useState();
|
|
555
|
-
const taunt = new tauntLogins.TauntApi(tauntServiceEndpoint)
|
|
555
|
+
const taunt = react.useMemo(()=>new tauntLogins.TauntApi(tauntServiceEndpoint), [
|
|
556
|
+
tauntServiceEndpoint
|
|
557
|
+
]);
|
|
556
558
|
const [isLoading, setIsLoading] = react.useState(false);
|
|
557
559
|
const loggedIn = !!deets;
|
|
558
560
|
const otpMagicLogin = react.useCallback((email)=>{
|
package/dist/es/index.js
CHANGED
|
@@ -552,7 +552,9 @@ function ModalView({ title, content, onClose }) {
|
|
|
552
552
|
|
|
553
553
|
const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
554
554
|
const [deets, setDeets] = useState();
|
|
555
|
-
const taunt = new TauntApi(tauntServiceEndpoint)
|
|
555
|
+
const taunt = useMemo(()=>new TauntApi(tauntServiceEndpoint), [
|
|
556
|
+
tauntServiceEndpoint
|
|
557
|
+
]);
|
|
556
558
|
const [isLoading, setIsLoading] = useState(false);
|
|
557
559
|
const loggedIn = !!deets;
|
|
558
560
|
const otpMagicLogin = useCallback((email)=>{
|