Skip to content

Releases: Bloomca/redux-tiles

v0.9.1 release

20 Dec 20:51
9013d6d
Compare
Choose a tag to compare

Fixing the bug when selector parameter in middleware was missing using sync tiles functions.

v0.9.0 release

17 Nov 21:07
1122d42
Compare
Choose a tag to compare

Add getData function #16 -- sync tile functions now have easier access to current data. So, we can write this code now:

import { createSyncTile } from 'redux-tiles';

export const todosTile = createSyncTile({
  type: ['todos', 'list'],
  fns: {
    add: ({ params, getData }) => {
      // instead of:
      // const list = selectors.todos.list(getState());
      const list = getData();
      const newItem = {
        ...params,
        completed: false,
        id: createId()
      };

      return list.concat(newItem);
    },
    remove: ({ params, getData }) => getData().filter(item => item.id !== params.id)
  }
});

v0.8.0

04 Oct 20:23
Compare
Choose a tag to compare

Now dispatching tile functions returns the same interface as a selector, so we can avoid writing cumbersome dispatch and then selectors with the same params.
So, this from the past README:

// login user
await dispatch(actions.tiles.user.authRequest(params));
    
// check the result
const { data: { id }, error } = selectors.tiles.user.authRequest(getState());

We can just write more elegantly now:

const { data: { id }, error } = await dispatch(actions.tiles.user.authRequest(params));

v0.7.1

25 Aug 09:46
Compare
Choose a tag to compare

Remove lodash as a dependency.
I've used a babel-lodash plugin, but the functionality was pretty easy, so I believe it is beneficial to rewrite it on our own.

You can compare sizes – new and old.

v0.7.0

03 Jul 21:27
Compare
Choose a tag to compare

Add fetched field to async tile data structure.

v0.7.0-beta.1

01 Jul 15:46
Compare
Choose a tag to compare

Done #15 – added fetched field to async tile data structure.

v0.6.1

10 Jun 17:13
Compare
Choose a tag to compare

Add fns property to createSyncTile, so it is possible to write more declarative functions (like in todoMVC).

v0.5.0

09 Jun 18:05
Compare
Choose a tag to compare

This is the first release to be somehow consumed.

Main difference is that caching is more predictable now (there is no aggressive caching anymore of requests).