Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c5184859
authored
Feb 17, 2017
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish -> publishLast, now the last query is 'replayed' if there is some late subscriber
1 parent
d165e980
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
code/moya-angular/src/app/app.component.ts
code/moya-angular/src/app/moya-rest/services/cache.service.ts
code/moya-angular/src/app/app.component.ts
View file @
c518485
...
@@ -19,6 +19,8 @@ export class AppComponent {
...
@@ -19,6 +19,8 @@ export class AppComponent {
});
});
});
});
}
}
...
...
code/moya-angular/src/app/moya-rest/services/cache.service.ts
View file @
c518485
...
@@ -84,7 +84,7 @@ export class CacheService {
...
@@ -84,7 +84,7 @@ export class CacheService {
let
hotSource
=
source
let
hotSource
=
source
.
do
(
val
=>
this
.
cache
.
set
(
cacheName
,
new
CachedItem
(
moduleName
,
cachePath
,
val
)))
.
do
(
val
=>
this
.
cache
.
set
(
cacheName
,
new
CachedItem
(
moduleName
,
cachePath
,
val
)))
.
publish
().
refCount
();
.
publish
Last
().
refCount
();
this
.
cache
.
set
(
cacheName
,
new
CachedItem
(
moduleName
,
cachePath
,
hotSource
,
true
));
this
.
cache
.
set
(
cacheName
,
new
CachedItem
(
moduleName
,
cachePath
,
hotSource
,
true
));
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment