Skip to content

Instantly share code, notes, and snippets.

View petivagyok16's full-sized avatar

Peter Palocz petivagyok16

View GitHub Profile
import { NgIf } from '@angular/common';
import { MatSelect, MatOption, MatFormField } from '@angular/material';
@Component({
selector: 'app-backup-selector',
templateUrl: './backup-selector.component.html',
styleUrls: ['./backup-selector.component.scss'],
deps: [
NgIf,
MatSelect,

Questions

  • Using strings as ACTION_NAME is safe?
  • Why redux is good for me? What happens if i dont use it, what are the consequences, difficulties? (a real world scenario would help to imagine)
  • What if a reducer grows so big that it becomes difficult to manage?
  • What if an endpoint gives back data in such a format that i have to reorganize? (e.g. Transfermarkt)
    • how to manage it by redux? Reorganize first and then push it to the store through the reducer,
    • or reorganize it in the reducer with kind of a reorganizer/mapping function?
    • or is there a totally different way to handle this?
  • Should i use switch-case in Reducers, or object-cases:
Ctrl + B -> give control to tmux
after tmux has the control:
Shift + 5 (%) -> new vertical split
Shift + ' (") -> new horizontal split
[ -> Enter to scroll mode
q -> Leave from scroll mode
Ctrl + B + arrows -> move the cursor between the instances