Skip to content
New issue

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

components as literal vars #4223

Merged
merged 23 commits into from
Oct 30, 2024
Merged

components as literal vars #4223

merged 23 commits into from
Oct 30, 2024

Conversation

adhami3310
Copy link
Member

No description provided.

return Bare.create("")


def render_dict_to_var(tag: dict | Component | str, imported_names: set[str]) -> Var:
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be nice if we could move some of this special specific logic closer to the components that will actually depend on it

Copy link
Member Author

Choose a reason for hiding this comment

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

at the current stage there's no standardization of the dict format, so the checks are very tight to what we have right now, i can restructure the rendering logic in the future if needed

@adhami3310
Copy link
Member Author

should be merged with reflex-dev/reflex-web#1047

@adhami3310 adhami3310 mentioned this pull request Oct 24, 2024
@adhami3310
Copy link
Member Author

waiting on reflex-dev/reflex-web#1050

@adhami3310 adhami3310 changed the title components as literal vars components as literal vars + upgrade to nextjs15 + use turbopack Oct 25, 2024
Copy link
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

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

can we pare this down and keep the nextjs15 and turbo changes in the other PR #4243

@adhami3310 adhami3310 changed the title components as literal vars + upgrade to nextjs15 + use turbopack components as literal vars Oct 25, 2024
@adhami3310
Copy link
Member Author

can we pare this down and keep the nextjs15 and turbo changes in the other PR

done

@Lendemor Lendemor mentioned this pull request Oct 25, 2024
@adhami3310 adhami3310 requested a review from masenf October 28, 2024 20:32
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are those tests removed? Is there a replacement that cover same usecases?

Copy link
Member Author

Choose a reason for hiding this comment

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

they are removed because it's annoyingly specific, since there are integration test cases I thought it's not worth the effort of having test cases that just repeat the logic of the code.

@adhami3310 adhami3310 merged commit 2436317 into main Oct 30, 2024
29 checks passed
@masenf masenf deleted the component-as-literal-vars branch December 12, 2024 07:03
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.

3 participants