Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Change the default value for warnings on element type changes to 'false' #168

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Ref switching now occurs in one pass, which should fix edge cases where the result of a ref is `nil`, especially in property changed events ([#98](https://github.com/Roblox/roact/pull/98))
* `setState` can now be called inside `init` and `willUpdate`. Instead of triggering a new render, it will affect the currently scheduled one. ([#139](https://github.com/Roblox/roact/pull/139))
* Roll back changes that allowed `setState` to be called inside `willUpdate`, which created state update scenarios with difficult-to-determine behavior. ([#157](https://github.com/Roblox/roact/pull/157))
* By default, disable the warning for an element changing types during reconciliation ([#168](https://github.com/Roblox/roact/pull/168))

## 1.0.0 Prerelease 2 (March 22, 2018)
* Removed `is*Element` methods, this is unlikely to affect anyone ([#50](https://github.com/Roblox/roact/pull/50))
Expand Down
2 changes: 1 addition & 1 deletion lib/Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local defaultConfig = {
-- Enables instrumentation of shouldUpdate and render methods for Roact components
["componentInstrumentation"] = false,
-- Enables warnings if an element changes type after being rendered.
["warnOnTypeChange"] = true,
["warnOnTypeChange"] = false,
}

-- Build a list of valid configuration values up for debug messages.
Expand Down