The application effects.
The partial top level model required to perform effects.
A custom application that will turn init
and update
effects into
actual Cmd
and state changes.
The additional ignore
function is used to ignore events at a single place
in the whole application. Compared to the commonly used NoOp
, it takes an
additional String
description to be more informative in the debugger.
Replace the current URL without adding an entry to the browser history.
Retrieve a time zone based on the current UTC offset.
Scroll page to top.
Create a new user.
Authenticate with the backend.
Fetch the logged in user settings.
Update the logged in user settings.
Fetch an article.
Create a new article.
Edit a previously created article.
Delete a previously created article.
Set an article as favorite.
Unset an article as favorite.
Fetch the user articles feed.
Fetch the global articles feed.
Fetch the current tag feed.
Fetch an author feed.
Fetch the favorite artciles feed.
Fetch an article comments.
Post an article comment.
Delete a previously posted article comment.
Fetch an author profile.
Unfollow an author.
This is a placeholder API for how we might log errors to a server.
Whenever you see Effect.logError used in this code base, it means "Something unexpected happened. This is where we would log an error to a server with some diagnostic info so we could investigate what happened later."
(Since this is outside the scope of the RealWorld spec, and is only a placeholder anyway, this function does not accept actual diagnostic info, authentication tokens, etc.)
An opaque type that represents all the effects that
init
andupdate
functions may produce.