Skip to content

Conversation

@Nnigmat
Copy link
Contributor

@Nnigmat Nnigmat commented Sep 2, 2021

Есть необходимость устанавливать токены и сбрасывать их.

Это можно делать в приложении, но это слишком громоздко из-за эффектора, нужно пересоздавать observer и заново навешивать на него watcher'ы и удалять старые.

@Nnigmat Nnigmat force-pushed the observer.reset-tokens branch from 9dd873b to 1284f83 Compare September 2, 2021 14:03
@Nnigmat Nnigmat changed the title feat: add reset function for observer Возможность устанавливать токены и сбрасывать их до изначального состояния Sep 2, 2021
@Nnigmat Nnigmat force-pushed the observer.reset-tokens branch from f4bf06a to e0c59d5 Compare September 2, 2021 14:16
constructor(options: CompileOptions, _compile: Compile = compile) {
this.compile = _compile
this.options = options
this.options = deepcopy(options)
Copy link
Contributor Author

@Nnigmat Nnigmat Sep 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь deepcopy, потому что у нас происходила мутация данных пользователя. Я столкнулся с этим во время запуска тестов, токены из одного теста были в другом.

@Nnigmat Nnigmat requested a review from yarastqt September 6, 2021 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants