This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 513
Separate Client and Server Actions? #50
Comments
Actually, not needed ;-) facebookarchive/flux#172 |
No I mean. The way it is now we can't have "media client" actions and "media server" actions in separate files which is a requirement for avoiding circular imports. i.e. a common pattern is: user client action -> webapi -> user server action e.g. // Client Actions
export function createUser(name:String) {
WebApi.createUser(name)
dispatch(createUser, name)
}
// WebApi
export function createUser(name:String) {
// ...
}
// Server Actions
export function createdUser(id:String) {
dispatch(createdUser, id)
} |
PR please. |
I don't have any good suggestion for solution. Just pointing out a problem. |
I am not aware of this issue yet, maybe it's not problem with ES6 modules. Let's wait. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: