Remix.run Logo
throwaway-0001 11 hours ago

https://github.com/mickael-kerjean/filestash/blob/master/pub...

All using plain strings, what happens when you do a typo? Will your app will silently break or you’ll have a compile time error? that’s a huge draw back - in react I can get a compile time error for a typo most of the time

mickael-kerjean 5 hours ago | parent [-]

> using plain strings, what happens when you do a typo?

The tests fails

> Will your app will silently break or you’ll have a compile time error?

There is no silent error. In practice, there are a couple fail safes:

- using both eslint and tsc: https://github.com/mickael-kerjean/filestash/blob/master/pub...

- the code is full of runtime assertions: https://github.com/mickael-kerjean/filestash/blob/1d1bad001b...

- unhandled error (like most assertion) will interrupt everything to show a scary looking screen: https://github.com/mickael-kerjean/filestash/blob/1d1bad001b...

- controlled error which are part of the regular error handling will stop the flow showing a screen like this: https://demo.filestash.app/?error=test