BlazorStyled icon indicating copy to clipboard operation
BlazorStyled copied to clipboard

Throw if theme is not set

Open imtrobin opened this issue 5 years ago • 1 comments

Hi, currently it is not reporting any error if the theme it not specified e.g

<Styled>
body {
        background-color:           [theme.ThisDoesNotExist];
    }
</Styled>

If I use the csharp API, it will throw theme.ThisDoesNotExist but on the html tag, no error is reported, and it's very hard to spot the error.

imtrobin avatar Jun 07 '20 04:06 imtrobin

This won't be included in v3. I need to think about this and see if this should throw or leave it as is. The reason leaving it as is could be correct, is the order of operations, in that the theme value is not set yet, but it will "eventually" - and when it does, the background color (in your example) will get set.

chanan avatar Jun 07 '20 18:06 chanan