<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
docker create
creates a container but does not start it.docker rename
allows the container to be renamed.docker run
creates and starts a container in one operation.docker rm
deletes a container.docker update
updates a container's resource limits.It is common to see the client side sending duplicate fetch data requests to an API endpoint or desktop page.
To avoid sending duplicate requests, I recommend to implement a caching function that caches HTTP responses.
Example:
// WARNING: this is sudo code, test before use!
const promiseCache = {}
This gist includes sample code which supports hybrid deployment in PWA Kit retail react app. The major changes are in auth.js where the authentication module supports storing auth tokens as cookies.
If you generated a PWA Kit project prior to v1.5, you need to adopt the changes from this file in your project.
Code diffs are available in the PR: https://github.com/SalesforceCommerceCloud/pwa-kit/pull/429/files