Comments (2)
Hi 👋
I guess there were a lot of breaking changes since you used Mint, sequence
has been removed since 0.17.0 and that's giving you the error.
I've updated your example, and it should work given there is the f()
function present:
component Main {
state val : String = "initial state"
fun modify : Promise(Void) {
let value =
await `f().then(value => value["m"])`
next { val: value }
}
fun render : Html {
<div>
<button onClick={modify}>
"Click Me!"
</button>
<text>
<{ val }>
</text>
</div>
}
}
Also created a working sandbox for the code above: https://sandbox.mint-lang.com/sandboxes/qFweHNt6-LMorQ
from mint.
Thank you very much!
from mint.
Related Issues (20)
- Improve string interpolation for various types
- Improve `mint test <test>` glob handling and warning output
- Support `mint test --watch` flag
- Allow `fun` inside of `suite` blocks HOT 1
- Allow `as` element references inside of test blocks
- `mint ls` does not support Outline view in VSCode
- LS autocomplete duplicates paths
- Dependency external CSS is not being bundled correctly
- Support shorthand `<div {property} />` syntax
- Support global components in tests
- Support async in tests
- Should `mint start`, `mint build`, and `mint test` automatically run `mint install`?
- using `@font-face` in `style` breaks formatter
- mint
- Default template fails to run tests HOT 1
- Support Intellij Idea
- Non-standard port number of test server is not reflected in WebSocket URL
- Trying to read a value from a <select> element HOT 2
- Add ARM binaries to release page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mint.