Hugo Alliaume

Results 329 comments of Hugo Alliaume

How do you call `registerReactControllerComponents`? I remember implementing lazy-loading for Vue components (https://github.com/symfony/ux/pull/482/), maybe this is something we can implement for React aswell? And to lazy-load components, passing `'lazy'` as...

Yes, it's something which is not implemented with the React integration. For the `'lazy'` parameter, see the 3rd example in https://webpack.js.org/api/module-methods/#requirecontext

@Bkucera For my own use case, I would be able to run Cypress on my extension's popup in order to see if: - it actually renders - some dynamic elements...

My popup is now successfuly tested, thanks you all! :sunglasses: ![capture d ecran de 2018-08-24 17-26-59](https://user-images.githubusercontent.com/2103975/44593185-03dbd500-a7c3-11e8-9c6f-9bdc5e968e2f.png) Some tips for people who wants to spec their extension's views and mocking `chrome*`...

Well, I only use `chrome.runtime.sendMessage` inside my popup view, I didn't take time for other methods :confused: **EDIT:** some times ago I used [jest-webextension-mock](https://github.com/clarkbw/jest-webextension-mock) for mocking `chrome.*` in Jest context....

@callmenick you can check https://github.com/cypress-io/cypress/issues/1965#issuecomment-415796370 I guess

Hi everyone, The `dump_directory` was introduced to be independent from the Kernel environment, because in your JavaScript you don't want to import translations from `var/cache/dev/translations` or `var/cache/prod/translations` or whatever is...

> This is not true as nothing is done to create the directory and as we've seen is (one of) reason we had a little bug (nothing dramatic here). The...

When using webpack Encore (or any bundlers in general), you can import translations (and other functions) from whatever directory you want. For AssetMapper, given [the documentation](https://symfony.com/bundles/ux-translator/current/index.html#using-with-assetmapper) it looks configurable too:...