local s=require(script.Parent.ComponentLifecyclePhase)local m={}m[s.WillUpdate]="\115\101\116\083\116\097\116\101 \099\097\110\110\111\116 \098\101 \117\115\101\100 \105\110 \116\104\101 \119\105\108\108\085\112\100\097\116\101 \108\105\102\101\099\121\099\108\101 \109\101\116\104\111\100\046\n\067\111\110\115\105\100\101\114 \117\115\105\110\103 \116\104\101 \100\105\100\085\112\100\097\116\101 \109\101\116\104\111\100 \105\110\115\116\101\097\100\044 \111\114 \117\115\105\110\103 \103\101\116\068\101\114\105\118\101\100\083\116\097\116\101\070\114\111\109\080\114\111\112\115\046\n\n\067\104\101\099\107 \116\104\101 \100\101\102\105\110\105\116\105\111\110 \111\102 \119\105\108\108\085\112\100\097\116\101 \105\110 \116\104\101 \099\111\109\112\111\110\101\110\116 \037\113\046"m[s.WillUnmount]="\115\101\116\083\116\097\116\101 \099\097\110\110\111\116 \098\101 \117\115\101\100 \105\110 \116\104\101 \119\105\108\108\085\110\109\111\117\110\116 \108\105\102\101\099\121\099\108\101 \109\101\116\104\111\100\046\n\065 \099\111\109\112\111\110\101\110\116 \116\104\097\116 \105\115 \098\101\105\110\103 \117\110\109\111\117\110\116\101\100 \099\097\110\110\111\116 \098\101 \117\112\100\097\116\101\100\033\n\n\067\104\101\099\107 \116\104\101 \100\101\102\105\110\105\116\105\111\110 \111\102 \119\105\108\108\085\110\109\111\117\110\116 \105\110 \116\104\101 \099\111\109\112\111\110\101\110\116 \037\113\046"m[s.ShouldUpdate]="\115\101\116\083\116\097\116\101 \099\097\110\110\111\116 \098\101 \117\115\101\100 \105\110 \116\104\101 \115\104\111\117\108\100\085\112\100\097\116\101 \108\105\102\101\099\121\099\108\101 \109\101\116\104\111\100\046\n\115\104\111\117\108\100\085\112\100\097\116\101 \109\117\115\116 \098\101 \097 \112\117\114\101 \102\117\110\099\116\105\111\110 \116\104\097\116 \111\110\108\121 \100\101\112\101\110\100\115 \111\110 \112\114\111\112\115 \097\110\100 \115\116\097\116\101\046\n\n\067\104\101\099\107 \116\104\101 \100\101\102\105\110\105\116\105\111\110 \111\102 \115\104\111\117\108\100\085\112\100\097\116\101 \105\110 \116\104\101 \099\111\109\112\111\110\101\110\116 \037\113\046"m[s.Render]="\115\101\116\083\116\097\116\101 \099\097\110\110\111\116 \098\101 \117\115\101\100 \105\110 \116\104\101 \114\101\110\100\101\114 \109\101\116\104\111\100\046\n\114\101\110\100\101\114 \109\117\115\116 \098\101 \097 \112\117\114\101 \102\117\110\099\116\105\111\110 \116\104\097\116 \111\110\108\121 \100\101\112\101\110\100\115 \111\110 \112\114\111\112\115 \097\110\100 \115\116\097\116\101\046\n\n\067\104\101\099\107 \116\104\101 \100\101\102\105\110\105\116\105\111\110 \111\102 \114\101\110\100\101\114 \105\110 \116\104\101 \099\111\109\112\111\110\101\110\116 \037\113\046"m.default="\115\101\116\083\116\097\116\101 \099\097\110 \110\111\116 \098\101 \117\115\101\100 \105\110 \116\104\101 \099\117\114\114\101\110\116 \115\105\116\117\097\116\105\111\110\044 \098\101\099\097\117\115\101 \082\111\097\099\116 \100\111\101\115\110\'\116 \107\110\111\119\n\119\104\105\099\104 \112\097\114\116 \111\102 \116\104\101 \108\105\102\101\099\121\099\108\101 \116\104\105\115 \099\111\109\112\111\110\101\110\116 \105\115 \105\110\046\n\n\084\104\105\115 \105\115 \097 \098\117\103 \105\110 \082\111\097\099\116\046\n\073\116 \119\097\115 \116\114\105\103\103\101\114\101\100 \098\121 \116\104\101 \099\111\109\112\111\110\101\110\116 \037\113\046\n"return m

local ComponentLifecyclePhase = require(script.Parent.ComponentLifecyclePhase)

local invalidSetStateMessages = {}

invalidSetStateMessages[ComponentLifecyclePhase.WillUpdate] = [[
setState cannot be used in the willUpdate lifecycle method.
Consider using the didUpdate method instead, or using getDerivedStateFromProps.

Check the definition of willUpdate in the component %q.]]

invalidSetStateMessages[ComponentLifecyclePhase.WillUnmount] = [[
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 %q.]]

invalidSetStateMessages[ComponentLifecyclePhase.ShouldUpdate] = [[
setState cannot be used in the shouldUpdate lifecycle method.
shouldUpdate must be a pure function that only depends on props and state.

Check the definition of shouldUpdate in the component %q.]]

invalidSetStateMessages[ComponentLifecyclePhase.Render] = [[
setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component %q.]]

invalidSetStateMessages["default"] = [[
setState can not be used in the current situation, because Roact doesn't know
which part of the lifecycle this component is in.

This is a bug in Roact.
It was triggered by the component %q.
]]

return invalidSetStateMessages
