Skip to content

Instantly share code, notes, and snippets.

Realm과 Redux을 같이 쓰는데 엄청난 문제가 발생했다.

현재는

  1. ActionCreator 가 Relam을 변경
  2. 변경된 Realm 객체 을 payload로 하여 Action을 생성
  3. 만들어진 Action으로 reducer 을 변경
  4. 변경된 reducer 로 View 을 변경

이러한 흐름으로 된다.

@g6ling
g6ling / agnoster.zsh-theme
Last active November 22, 2016 07:37
my zsh_agnoster_theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
var _promise1 = function (param) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
console.log('ok1');
resolve(param);
}, 100);
});
};
var _promise2 = function (param) {
return new Promise(function (resolve, reject) {
@g6ling
g6ling / promise_test3.js
Created November 18, 2016 08:34
promise chain test 3
var _promise1 = function (param) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
console.log('ok1');
resolve(param);
}, 100);
});
};
var _promise2 = function (param) {
return new Promise(function (resolve, reject) {
@g6ling
g6ling / promise_test2.js
Created November 17, 2016 15:09
promise chain test 2
var _promise1 = function (param) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve("ok1");
}, 3000);
});
};
var _promise2 = function (param) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
@g6ling
g6ling / promise_test1.js
Last active November 19, 2016 06:08
promise chain test 1
var _promise1 = function (param) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve("ok1");
}, 3000);
});
};
var _promise2 = function (param) {
return new Promise(function (resolve, reject) {
setTimeout(function () {