Added features to PostLists and internal refactoring
-
Added ability to dynamically update filters on the post list using bloql functions in an
PostList
component:// Filter a list of posts by tags or date this.props.bloql.setFilters({ tags: ['trip', 'usa'], startDate: '2015-01-01' }); // Reset filters this.props.bloql.resetFilters();
Example: https://github.com/adriantoine/bloql-examples/blob/master/filters/public/index.js#L10
-
Changed function names for better consistency (hopefully it will be the last time I do that):
import { setComponent } from 'bloql/Post'; import { setComponent } from 'bloql/PostList'; // become => import { createComponent } from 'bloql/Post'; import { createComponent } from 'bloql/PostList';
-
Just like
Post
,PostList
becomes a big customisable object, see previous release. -
This is not part of this repo/package but examples have been updated to demonstrate more features: bloql-examples