mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:28:58 +08:00

A lot of the data of fields is decided at insertion time and is not dynamic afterwards, this commit attempts to solve this problem by making the fk-field-data a component with getters on the all the properties we need. It allows for example to implement a dynamic @disabled without having to pass @disabled everywhere. Generally speaking this solution limits props-drilling. @format has received the same treatment than @disabled.