redbar0n

Results 99 comments of redbar0n

[3] This is a third approach, using triggers: https://stackoverflow.com/questions/57053706/how-to-create-trigger-to-run-multiple-function-in-parallel-passing-parameter/57071937#57071937 Not sure how reliable triggers are, since according to [1] trigger timing accuracy can be +-15 minutes. That post [was written...

Yes, and it's up to developers to take that into account and ensure a consistent and good UX in spite of browser quirks.

This would also be a great idea for **demonstrating the value proposition of Lucy** (as it should really shine for more complex examples). I was searching for an online XState...

>You mean rename the Docs link in the top left? No, not actually. That kind of illustrates the problem, because I also thought Docs would lead me to the API......

One option could be to use a tagged template literal string. Which at first glance seems to have [typescript support](https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html). It would also allow to eliminate the documentation/comments in the...

I see there’s some precedence to the API that I suggested: https://solito.dev/usage/link#wrapper-components In all, [Solito](https://solito.dev) does some really nifty things with routing, which is very desirable to replicate on a...

> Does Solito has such TypeScript support? It [doesn't seem](https://solito.dev/usage/link) like it. It simply replicates NextJS' API. > So far, I can't see how TypeScript's template literal strings would help....

> Open question: how to make it work with TypeScript? So that TypeScript complains upon or (because "42" is a string but should be a number). Did some more research...

Came across this. Could be potential inspiration for typesafe routes. > solito’s useParam() hook takes in a parse() function to let you turn the string → number. i’ve found it...

[react-router-url-params](https://github.com/mcctomsk/react-router-url-params) is another one, for typesafe query parameters. It was made this summer.