microlinkhq / sdk

Make any URL embeddable. Turn any URL into a beautiful link preview.

Home Page:https://microlink.io/sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Received `true` for a non-boolean attribute `loading`.

quintmouthaan opened this issue · comments

Bug Report

Current Behavior
I'm getting the following error in my javascript console: Received true for a non-boolean attribute loading.

Possible Solution
convert isLoading variable to a string
image

Additional context/Screenshots
image

I'm pretty sure this is because loading is a valid html5 attribute, so styled-components is probably whitelisting it.

We could rename the property to isLoading @Kikobeats

More than that, we can destructuring the value and avoid pass it to children