         @props.public_data  != next.public_data  or
         @props.is_public    != next.is_public    or
         @props.current_path != next.current_path or
-        @props.no_select    != next.no_select
+        @props.no_select    != next.no_select    or
+        @props.public_view  != next.public_view
 
     handle_mouse_down: (e) ->
         @setState

                bsSize  = 'xsmall'
                onClick = {@props.on_click}
            >
                <Icon name='bullhorn' /> <span className='hidden-xs'>Public...</span>
            </Button>
        </span>

generate_on_share_click = (full_path, actions) =>
    (e) =>
        e.preventDefault()



    render_public_file_info: ->
        if @props.public_view
            <CopyButton
                on_click = {generate_on_copy_click(@full_path(), @props.actions)}
            />
        else if @props.is_public
            <PublicButton
                id       = {@props.name}
                on_click = {generate_on_share_click(@full_path(), @props.actions)}
