We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subscriptions会在domReady后全部都执行,而且没有任何约束。 对于需登录的系统,subscriptions是不应该执行的; 或者重刷当前页面,其他页面的subscriptions 也不应该执行; 该怎么控制比较好些?在每个subscriptions里面自己再做一次判断?
The text was updated successfully, but these errors were encountered:
需登录的系统,通常需要做什么初始化的操作?
Subscription 语义是订阅,用于订阅一个数据源,然后根据条件 dispatch action。数据源可以是当前的时间、服务器的 websocket 连接、keyboard 输入等。
举几个我觉得适用的场景:
SSE
Websockets
更多关于 subscription,见:http://elm-lang.org/blog/farewell-to-frp
Sorry, something went wrong.
No branches or pull requests
subscriptions会在domReady后全部都执行,而且没有任何约束。
对于需登录的系统,subscriptions是不应该执行的;
或者重刷当前页面,其他页面的subscriptions 也不应该执行;
该怎么控制比较好些?在每个subscriptions里面自己再做一次判断?
The text was updated successfully, but these errors were encountered: