Reproduction Steps
Run this in a LocalScript using a mobile test preview:
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false) -- hide the player's name
Expected Behavior
No errors when testing the game in a mobile emulator in Studio
Actual Behavior
When running the mobile emulator, Studio shows theses errors repeatedly:
CoreGui.RobloxGui.Modules.PlayerList.Components.PresentationMobile.PlayerDropDown:92: setState cannot be used in the willUnmount lifecycle method.
A component that is being unmounted cannot be updated!
Check the definition of willUnmount in the component “PlayerDropDown”.
Stack Begin
Script ‘CorePackages.Packages._Index.roblox_roact.roact.Component’, Line 116 - function setState
Script ‘CoreGui.RobloxGui.Modules.PlayerList.Components.PresentationMobile.PlayerDropDown’, Line 92
Script ‘CorePackages.Packages._Index.roblox_otter.otter.createSignal’, Line 50 - function fire
Script ‘CorePackages.Packages._Index.roblox_otter.otter.createSingleMotor’, Line 65 - function step
Script ‘CorePackages.Packages._Index.roblox_otter.otter.createSingleMotor’, Line 34
Stack End
CoreGui.RobloxGui.Modules.PlayerList.Components.PresentationMobile.PlayerDropDown:92: setState cannot be used in the willUnmount lifecycle method.
A component that is being unmounted cannot be updated!