Skip to content

Deprecate stringToComponent #2

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

Merged
merged 2 commits into from
Sep 27, 2022
Merged

Deprecate stringToComponent #2

merged 2 commits into from
Sep 27, 2022

Conversation

rickyvetter
Copy link
Collaborator

The ppx inserts JS objects of various shapes. Needs to be flexible on props type.

@rickyvetter rickyvetter reopened this Jan 22, 2022
@cknitt
Copy link
Member

cknitt commented Sep 25, 2022

@rickyvetter @mattdamon108 Is this still relevant?

@mununki
Copy link
Member

mununki commented Sep 25, 2022

I don't know the context of this PR enough. But, I think stringToComponent can be deprecated for backward compatibility. Actually, ppx v3 and v4 seem not to be using it.

@cknitt
Copy link
Member

cknitt commented Sep 25, 2022

@mattdamon108 If it is really not used by either PPX I think we may as well remove it (and only leave it in ReactDOM_V3.res for backward compatibility).

@mununki
Copy link
Member

mununki commented Sep 25, 2022

I agree. But the rescript-react is not only for ppx, maybe just maybe someone wants to use it with v4? too much imagination?

@mununki
Copy link
Member

mununki commented Sep 25, 2022

I admit too much imagination 😄 Yes, I think we can remove it.

@mununki
Copy link
Member

mununki commented Sep 25, 2022

I found https://github.com/rescript-lang/syntax/blob/master/tests/printer/expr/bsObj.res but we can fix the test.

@cknitt
Copy link
Member

cknitt commented Sep 26, 2022

I think the stringToComponent in the test does not really matter anyway, the test source is just parsed and reprinted AFAIK.

@mununki
Copy link
Member

mununki commented Sep 27, 2022

I think the stringToComponent in the test does not really matter anyway, the test source is just parsed and reprinted AFAIK.

Good. How about deprecate it first to merge this PR? I guess that comment seems stale though.

@mununki
Copy link
Member

mununki commented Sep 27, 2022

Want me to add commit to update comment to this PR directly?

@cknitt
Copy link
Member

cknitt commented Sep 27, 2022

Want me to add commit to update comment to this PR directly?

Yes, please, thanks!

@mununki
Copy link
Member

mununki commented Sep 27, 2022

Rebased and updated d75d148 @cknitt

Copy link
Member

@cknitt cknitt left a comment

Choose a reason for hiding this comment

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

Thanks!

@cknitt cknitt changed the title stringToComponent type that works with ppx Deprecate stringToComponent Sep 27, 2022
@cknitt cknitt merged commit ecfaa47 into master Sep 27, 2022
@cknitt cknitt deleted the stringToComponent branch September 27, 2022 15:35
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