Skip to content

[Frontend] Add a note about stimulusFetch & TypeScript config #16815

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 1 commit into from
May 20, 2022

Conversation

jmsche
Copy link
Contributor

@jmsche jmsche commented May 20, 2022

Just a note about using stimulusFetch in Stimulus controllers while writing them with TypeScript.

@carsonbot carsonbot added this to the 5.4 milestone May 20, 2022
.. note::

If you write your controllers using TypeScript, make sure
``removeComments`` is not set to ``true`` in your TypeScript config.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe extend the sentence to explain the "why"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is necessary? I mean, the config is a comment, so it makes sense without explaining it? Or do you mean to explain that TypeScript is compiled before stimulusFetch config is handled by Simulus bridge?

Copy link
Member

Choose a reason for hiding this comment

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

I like the note as is :)

@javiereguiluz
Copy link
Member

Thank you @jmsche.

@javiereguiluz javiereguiluz merged commit 1158bde into symfony:5.4 May 20, 2022
@jmsche jmsche deleted the stimulusfetch-ts-comments branch December 14, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants