We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization-prevention does not work under the following conditions:
(defui B static css/CSS (local-rules [this] [:.c {..}]) (include-children [this] []) static css/Global (global-rules [this] [[:.d {..}]])
(defui B
static css/CSS
(local-rules [this] [:.c {..}])
(include-children [this] [])
static css/Global
(global-rules [this] [[:.d {..}]])
(defui A static css/CSS (local-rules [this] [:.a {..} [:$b {..}]]) (include-children [this] [B]))
(defui A
(local-rules [this] [:.a {..}
[
{..}]])
(include-children [this] [B]))
This works because the keyword 'b' is not used in the global rules of the parents, children or siblings
(defui B static css/CSS (local-rules [this] [:.c {..}]) (include-children [this] []) static css/Global (global-rules [this] [[:.b {..}]])
(global-rules [this] [[
This doesn't work because the keyword 'b' is used in the global rules of Component-B and in the local rules of Component-A
Note: This only happens when optimisation level is set to :advanced
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Localization-prevention does not work under the following conditions:
Example where is works fine with advanced compilation
(defui B
static css/CSS
(local-rules [this] [:.c {..}])
(include-children [this] [])
static css/Global
(global-rules [this] [[:.d {..}]])
(defui A
static css/CSS
(local-rules [this] [:.a {..}
[
:$b{..}]])
(include-children [this] [B]))
This works because the keyword 'b' is not used in the global rules of the parents, children or siblings
Example where it is broken
(defui B
static css/CSS
(local-rules [this] [:.c {..}])
(include-children [this] [])
static css/Global
(global-rules [this] [[
:.b{..}]])
(defui A
static css/CSS
(local-rules [this] [:.a {..}
[
:$b{..}]])
(include-children [this] [B]))
This doesn't work because the keyword 'b' is used in the global rules of Component-B and in the local rules of Component-A
Note: This only happens when optimisation level is set to :advanced
The text was updated successfully, but these errors were encountered: