This comes at the cost of creating a flash of the default message when the preview updates, but significantly simplifies the code.
This comes at the cost of creating a flash of the default message when the preview updates, but significantly simplifies the code.