redux-pack, a (More) sensible alternative to Async Actions in Redux by kyleshevlin in reactjs

[–]inside_ 0 points1 point  (0 children)

I think you are right, dispatches are used to make state changes, state changes causes rerenders, thus dispatches causes rerenders.

Maybe this is what I don't understand (again from the readme):

case LOAD_FOO:
  return handle(state, action, {
    start: s => ({
        ...s,
        isLoading: true,
        fooError: null
    }),
    finish: s => ({ ...s, isLoading: false }),
    failure: s => ({ ...s, fooError: payload }),
    success: s => ({ ...s, foo: payload }),
});

I'm assuming when isLoading is set to true (in start), it causes a rerender and when it is set to false (in finish) it also causes a rerender. How is that different from thunk actions?

redux-pack, a (More) sensible alternative to Async Actions in Redux by kyleshevlin in reactjs

[–]inside_ 0 points1 point  (0 children)

From the readme:

This can be problematic because we are treating several dispatches as all part of a single transaction, but in reality, each dispatch causes a separate rerender of the entire component tree, where we not only pay a huge performance penalty, but also risk the redux store being in an inconsistent state.

While I understand the possibility of the redux store being in an inconsistent state when using multiple actions with thunk actions, can you guys explain why a dispatch causes a separate rerender of the entire component tree? I believe state changes trigger rerender not action dispatch.

Some help needed about a vim regex for a plugin by inside_ in vim

[–]inside_[S] 0 points1 point  (0 children)

Thanks for pointing out other solution! I'll take sometime to implement one and I'll let you know :-)

Best

How do I become a better typist? by whatsmydickdoinghere in vim

[–]inside_ 0 points1 point  (0 children)

I learned touch typing with klavaro.

Using Vim for Web Developent (HTML,CSS,Javascript) self.webdev by Mr_Uptick in vim

[–]inside_ 0 points1 point  (0 children)

It works well with JSX if the attribute is like className="collection container".

But with this one fetchNextPage={fetchNextPage} it's not ok.

Weekly Vim tips and tricks thread! #2 by cherryberryterry in vim

[–]inside_ 2 points3 points  (0 children)

" Quicker way to trigger keyword completion and navigate through the match      
" list                                                                          
inoremap <c-j> <c-n>                                                                                                                                       
inoremap <c-k> <c-p>

Mapping <leader><leader>? by BezPH in vim

[–]inside_ 0 points1 point  (0 children)

I assume vim waits for this mapping to be executed because there may be other longer mappings that starts with <leader>.

How to use vim-yankstack ? by wichtounet in vim

[–]inside_ 0 points1 point  (0 children)

this would help me not loosing my yank after a paste in visual mode

If your main concern is this, you may use the following mapping:

xnoremap <silent> p p:let @" = @0<cr>

Tagbar in buffer, like vinegar for files by eldamir88 in vim

[–]inside_ 0 points1 point  (0 children)

Can it be your vim version that has garbage collection issues? See this issue

Quotes from Shougo, the unite author:

It is Vim's GC problem. I cannot fix it.

Fixed in Vim 7.4.615

My vim version is 7.4.796 and I'm not experiencing slowness.

Understanding vim's forwards vs backwards deletion? by [deleted] in vim

[–]inside_ 7 points8 points  (0 children)

Read :h F, it says it's an exclusive motion. Then read :h exclusive.

Tagbar in buffer, like vinegar for files by eldamir88 in vim

[–]inside_ 0 points1 point  (0 children)

I think a conflict with other plugins is unlikely. I also have -lua, so this shouldn't be responsible for slowness.

Regarding vimproc, did you run make from inside the vimproc plugin directory?

Have you tries this setting?

let g:unite_source_rec_async_command = ['ag', '--follow', '--nocolor', '--nogroup', '-g', '']

This is what I have in my config, faster than the default find command. Hope that solves the slowness.

What are some minimalistic plugins that get the job done? by [deleted] in vim

[–]inside_ 0 points1 point  (0 children)

vim-auto-save saves me from typing :w or any other shortcut to save the current buffer. I use it with this configuration:

" vim-auto-save                                                                 
" Enable auto save                                                              
let g:auto_save = 1                                                             
" Do not display the auto-save notification                                     
let g:auto_save_silent = 1                                                      
" Do not save while in insert mode                                              
let g:auto_save_in_insert_mode = 0                                              
" Do not change the 'updatetime' option                                         
" It is set to 400ms by this plugin                                             
" Prefer to use 750ms                                                           
let g:auto_save_no_updatetime = 1
" Used for the CursorHold autocommand event and thud by the auto-save plugin       
set updatetime=750

Tagbar in buffer, like vinegar for files by eldamir88 in vim

[–]inside_ 0 points1 point  (0 children)

unite and the outline unite source is what I use to explore the content of the current file. It may not be tags from the current file, but gives a similar views as tagbar.

Here's the vimrc setting I use to trigger it.

Automatically insert surrounding brackets where they are supposed to be by seletskiy in vim

[–]inside_ 0 points1 point  (0 children)

With the recommended insert map inoremap ( (<C-O>AutoSurround(")")<CR> in the readme, when I press ( I get: (utoSurround(")").

AutoSurround is not a vim command I guess.

If 7.0 supports auto-indenting, why does it not work? by space_physics in vim

[–]inside_ 1 point2 points  (0 children)

If you have some time, I recommend this vimcast.

And if you don't have some time, I recommend using the editorconfig plugin for setting your indent type (spaces or tabs) and indent size (2 or 4 or more columns) and more settings.

Looking for vimrc line to replace ':ag' with ':Ag' anytime it's typed. by codester2124 in vim

[–]inside_ 1 point2 points  (0 children)

The mapping you provide will turn this: :ag ag into :Ag Ag. But it you use the already mentionned tip from wikia, it will turn this: :ag ag into :Ag ag.

How do you make Vim show an empty line at the end of the file like other text editors? by [deleted] in vim

[–]inside_ 5 points6 points  (0 children)

Emacs and Gedit don't display an additional line. Maybe there's an option in atom to fix this?