Skip to content

Conversation

@Malian
Copy link
Collaborator

@Malian Malian commented May 8, 2021

Related to #340

@Malian Malian changed the title Introduce the concept of root properties [WIP]: Introduce the concept of root properties May 8, 2021
@Malian Malian marked this pull request as ready for review May 9, 2021 07:42
@Malian Malian changed the title [WIP]: Introduce the concept of root properties Introduce the concept of root properties May 9, 2021
@Malian Malian force-pushed the introduce-root-property branch from 73a7608 to 72acf65 Compare May 9, 2021 14:25
Copy link
Member

@msaraiva msaraiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a few tests, it seems that it would not be so complicated to move validation to __after_compile__. I'll propose a PR with that changes.

@Malian that's great news! If you want to do it in the scope of this PR, it's fine. If not, it's fine too :)

I also left a couple of minor comments.

@Malian Malian force-pushed the introduce-root-property branch from 2271197 to df4a766 Compare May 9, 2021 18:19
@Malian
Copy link
Collaborator Author

Malian commented May 9, 2021

@msaraiva

If you want to do it in the scope of this PR, it's fine. If not, it's fine too :)

I'll do this in a new PR :)

@Malian Malian force-pushed the introduce-root-property branch from df4a766 to 077541a Compare May 10, 2021 18:42
Copy link
Member

@msaraiva msaraiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! ❤️

@Malian Malian merged commit 0f368fd into surface-ui:surface-next May 10, 2021
lnr0626 added a commit to lnr0626/surface that referenced this pull request May 11, 2021
* surface-next:
  Remove `phx_` prefix from props (surface-ui#384)
  Remove code for embedded interpolation inside strings
  Introduce <#unless> (surface-ui#376)
  Introduce the concept of root properties (surface-ui#382)
  Warn on invalid prop/data defaults (surface-ui#374)
  Deprecated unquoted strings (surface-ui#379)
  Convert embedded interpolation (surface-ui#380)
  Introduce <#raw> and deprecate <#Raw> (surface-ui#377)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants