fast icon indicating copy to clipboard operation
fast copied to clipboard

enable strictPropertyInitialization in fast-element

Open m4thieulavoie opened this issue 3 years ago • 4 comments

Pull Request

📖 Description

This PR enables strictPropertyInitialization in fast-element

🎫 Issues

Part of https://github.com/microsoft/fast/issues/5337

👩‍💻 Reviewer Notes

📑 Test Plan

✅ Checklist

General

  • [x] I have included a change request file using $ yarn change
  • [ ] I have added tests for my changes.
  • [x] I have tested my changes.
  • [ ] I have updated the project documentation to reflect my changes.
  • [x] I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

⏭ Next Steps

m4thieulavoie avatar Aug 18 '22 23:08 m4thieulavoie

Thanks for working on this @m4thieulavoie . I need to think about this a bit. I'm not concerned about the spec file changes. But the changes to the templating engine implementation could have some consequences. I would like the property to be defined, but not sure whether they should be set to undefined or string/etc values. I wonder what if any perf implication or memory implication there is for that given that lots of these things get created, especially at startup time. Some of the code is just to satisfy TS and I want to be careful about that. Because, for example, in the render directive, we know that there will be a template that can create a view by the time the create API is called. So, there's no real reason to check that except to make TS happy.

EisenbergEffect avatar Aug 25 '22 17:08 EisenbergEffect

@m4thieulavoie We just had a big merge last week to FE2. I think we're done with that level of changes. There are more things coming up late next week and the following week. Do you want to take one more go at updating this and let's see if we can merge next week? I apologize for the churn.

EisenbergEffect avatar Sep 15 '22 21:09 EisenbergEffect

@m4thieulavoie We just had a big merge last week to FE2. I think we're done with that level of changes. There are more things coming up late next week and the following week. Do you want to take one more go at updating this and let's see if we can merge next week? I apologize for the churn.

Yeah sure. I guess I'm confused on the direction to take after reading https://github.com/microsoft/fast/pull/6297#issuecomment-1227578106 , hence me pausing that work 👍 Let me know!

m4thieulavoie avatar Sep 16 '22 12:09 m4thieulavoie

Ooops. I should read my own comments again before posting. Sorry! Let me do another review, and get you some concrete feedback. No need to take any action until I deliver this. Ball in my court.

EisenbergEffect avatar Sep 16 '22 13:09 EisenbergEffect

I believe this PR is too out of date at this point and we're considering FE 2 to be ready for production release. Let's swing back around after launch if we still want to add strictPropertyInitialization, sorry this got pushed back and delayed for so long there were a lot of moving pieces at the time this was posted.

janechu avatar May 30 '24 18:05 janechu