Remix.run Logo
lambdas 4 hours ago

Did the restrictions on JavaScript get resolved? IIRC, they made it so you had to use their “Ports” mechanism to interface with JavaScript, and you couldn’t write your own wrappers.

There was some drama when someone forked it so you could write your own JavaScript wrappers/FFI too?

miniBill 3 hours ago | parent [-]

FFI is still mostly done through ports (or web components, for the view part). This is an intentional choice and likely to stay until 1.0 and beyond

1-more an hour ago | parent [-]

You can also do lunatic things like overload the `Object` prototype and get synchronous FFI by encoding then decoding an object. I do this at work to get locale-aware sorting. I know you know this, but it'll be news to others in the thread.