Curried/uncurried single-argument functions
If you disable auto currying that also applies to dependencies, and it won’t work with the new ReScript packages like core. Currying is still part of the language, but you have to opt each function...
View ArticleCurried/uncurried single-argument functions
Single arity uncurried functions can be passed directly as an argument into another function. I think the weird error messages are because in ReScript 11 most of the standard library is still curried...
View ArticleCurried/uncurried single-argument functions
If you migrate to 12 it would mean everything is always uncurried by default, which would break some PPXs. You would need to wait for those PPXs to be updated, or switch to a other solution.
View ArticleWeb frontend frameworks ReScript can work with in 2024?
I’m really unhappy with nextjs (with TypeScript) and it’s not straight forward to use it in ReScript. Unfortunately I have to use it at work in more or less every project. So I started to build a...
View ArticleCurried/uncurried single-argument functions
I’ll echo what @jfrolich says - probably a good idea to go to v11.1.x but stay on curried, and then move to v12 and uncurried when v12 has shipped as stable and the relevant parts of the ecosystem has...
View ArticleCurried/uncurried single-argument functions
@adnelson are there any external dependencies you have that haven’t migrated? I’d be happy to help out with updating anything that’s open source.
View ArticleWeb frontend frameworks ReScript can work with in 2024?
@zth @dkirchhof while it’s tempting to simplify things, too many unknowns for me these days. I would have tried it out 5 years ago though Also, Bun is a show-stopper as I deploy to Cloudflare.
View ArticleCorrect way to use `React.forwardRef` with uncurried ReScript + ReScriptReact...
I guess you are still using JSX V3? Not sure if that is possible. @moondaddi maybe knows more. Personally, I would use JSX V4 where that example compiles in uncurried mode: ReScript Playground But...
View ArticleCorrect way to use `React.forwardRef` with uncurried ReScript + ReScriptReact...
Yeah we are on JSX 3 and we’re on an older version of react which requires forwardRef (as far as I know). But it’s interesting that it’s discouraged (maybe it should be marked as deprecated and given...
View ArticleCorrect way to use `React.forwardRef` with uncurried ReScript + ReScriptReact...
The alternative is to Forward Refs via Props: Forwarding Refs | React Just add a ~myWhateverRef prop that is not just named ref.
View ArticleCorrect way to use `React.forwardRef` with uncurried ReScript + ReScriptReact...
@adnelson Have you added “-open ReactV3” to bsc-flags in your rescript.json or bsconfig.json? rescript-compiler/docs/JSXV4.md at master · rescript-lang/rescript-compiler · GitHub
View ArticleUsing server action from Next js with Rescript
I am trying to use rescript in one of my existing next js app. And I couldn’t make server actions work properly. Does anyone has done it before?
View ArticleUsing server action from Next js with Rescript
Could you describe what you tried and what was the outcome? I think the issue in rescript is that there’s no way to have directives outside of the top level. I think nobody has taken the time to...
View ArticleUsing server action from Next js with Rescript
It’s implemented, but just in v12: ReScript Playground
View ArticlePanda CSS doesn't style components
Bindings are generating wrappers that import panda modules indirectly instead of direct imports. Adding an importMap in panda.config.js can help, but bindings still need to be created for each...
View ArticleGive your feedback about rescript-webapi!
Hi folks, I’m experimenting with creating new bindings over at GitHub - rescript-lang/experimental-rescript-webapi: Experimental successor to rescript-webapi I’m creating issues as questions arise,...
View ArticleHow does one work with rescript in tauri?
I’m trying to build a tauri app and initially I was using typescript but coming from ocaml and other fp languages I can’t go back to typescript. Every attempt at creating records and sum types always...
View ArticleHow does one work with rescript in tauri?
If I understand correctly, tauri just needs a working SPA setup, so the easiest would be to use create rescript app and select vite and react template. Then add the rest of the tauri config and it...
View ArticleHow does one work with rescript in tauri?
Ok so maybe I kind of jumped the gun on this I never tried building the spa and then adding tauri cli. I was using initially the template above and modifying it in an ad-hoc to make it work. I was...
View Article