Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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