usePermissions hook infinite loop when using multiple permissions (array format)

SDK Version: 40

Platforms: all

Description of the bug

Component keeps re-rendering infinitely when I use multiple permissions syntax i.e.
const [permission, askForPermission] = usePermissions([Permissions.CAMERA, Permissions.LOCATION] );

To Reproduce

Here is the snack link: shallow pastry - Snack
I added a console.log statement and you will see that it prints infinitely

1 Like

Thanks for bringing this to our attention and for providing a repro case, @rabiarashid.

Cheers,
Adam

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.