-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$mol_offline refactor, disable cache on page reload via dev server #710
base: master
Are you sure you want to change the base?
Conversation
fetch/fetch.ts
Outdated
export function $mol_fetch_request_clone(this: typeof $, original: Request, options?: RequestInit) { | ||
return new Request(original, options) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хотя, сделать и над реквестом обёртку возможно не плохая идея. Есть ил ещё какая полезная функциональность для реквестов помимо клонирования?
fetch/fetch.ts
Outdated
export function $mol_fetch_request_clone(this: typeof $, original: Request, options?: RequestInit) { | ||
return new Request(original, options) | ||
} | ||
$.$mol_fetch_request_clone = $mol_wire_sync($).$mol_fetch_request_clone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Опять у тебя простое клонирование реквеста тянет за собой реактивность.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А какое отношение реквест вообще имеет к фетчу?
notify/notify.ts
Outdated
} | ||
|
||
static show( info: $mol_notify_info ) { | ||
this.$.$mol_service_worker.send(info) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
send посылает любые сообщения? Если так, то одного $mol_notify_info тут мало. Если только нотификации, то send - не удачное название.
No description provided.