Comments (4)
There is another problem now... Now UI "waits" for final cotransform
to re-render. Let's say you have something like:
performAction SomethingHappened _ _ = do
T.cotransform $ \s -> s { showLoader = true }
lift longAjaxRequest
void $ T.cotransform $ \s -> s { showLoader = false }
then loader will not be shown at all. Should I start another issue?
from purescript-thermite.
Thanks for pointing this out. This might be due to a problem in coroutines
actually. We had a similar problem with producers and consumers at one point.
I'll have a look soon, but if you need a solution now, you might want to try switching around the order of the arguments to transformCoTransform
.
from purescript-thermite.
This is fixed by purescript-contrib/purescript-coroutines#12
from purescript-thermite.
This is fixed in master now.
from purescript-thermite.
Related Issues (20)
- Uprade to PS 0.12 ? HOT 6
- README: defaultMain params seem incorrect HOT 2
- What is R.p' in the Getting Started Documentation? HOT 2
- Thermite example doesnt seem to work HOT 1
- Can't run the example HOT 3
- Add subscriptions and initialAction
- Multiple 'update' actions work on initial copy HOT 3
- Can't get any examples working HOT 7
- Missing hello world / template? HOT 6
- Use of div' in render causes problems with react-native HOT 14
- Any plans to add JSX support!? HOT 1
- Asynchronous handlers closing over state? HOT 1
- Monolithic components HOT 1
- Routing and actions/effects while switching views HOT 2
- Server Side Rendering in Thermite HOT 5
- ReactDOM failed to load HOT 3
- example project demo link in README.md is broken HOT 1
- `createReactSpec` type too restrictive. HOT 4
- Remove DOM dependency HOT 7
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 purescript-thermite.