Skip to content

Commit

Permalink
Added more APIs to store and fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
isocroft committed Apr 18, 2017
1 parent e373b76 commit 869bca6
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 265 deletions.
37 changes: 36 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
# Code Requests

- Support for undo-ing an action (This will need the implementation of an undo stack)
- define **Radixx.attachMiddleware(function: fn)**

```js

// below is the form of the implementation

Radixx.attachMiddleware(function(aciton, next){
if(action.actionData === null){
action.actionData = [{}];
}
return next();
});
```

- modify **Radixx.createAction(object: obj)**

```js

// below is the form of the implementation
Radixx.createAction({
// used to identify an action
'doThing':{
type:'DO_THING',
// define what the payload for this action should be and look like
payloadDefinition:[
Radixx.Payload.typing.array.isRequired(),
Radixx.Payload.form.object.asPart()
]
}
});
```

- Optimize <q>onDispatch</q> event not to fire only when any store data ACTUALLY changes

- See if there's a way to stop the propagation of _'storage'_ events whenever **Radixx** is making use of sessionStorage

- Detect memory leaks and clean them up.
Loading

0 comments on commit 869bca6

Please sign in to comment.