You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've started using const enums in a few places throughout the framework. Although lighter, I've noticed they can't be used after code is transpiled (in react native which uses a custom ts compiler I think).
Due to this I think it may be better to keep using normal enums for now (to stay consistent across the framework). We can then later look at using other types of enum methods that can be used outside of AFJ (in consumer code).
We've started using const enums in a few places throughout the framework. Although lighter, I've noticed they can't be used after code is transpiled (in react native which uses a custom ts compiler I think).
Due to this I think it may be better to keep using normal enums for now (to stay consistent across the framework). We can then later look at using other types of enum methods that can be used outside of AFJ (in consumer code).
more info: https://ncjamieson.com/dont-export-const-enums/
The text was updated successfully, but these errors were encountered: