Skip to content

Commit 50c0509

Browse files
committed
fix: also use ssrAppId for client update
1 parent b0c85e5 commit 50c0509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/updateClientMetaInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ function getTag (tags, tag) {
1717
* @param {Object} newInfo - the meta info to update to
1818
*/
1919
export default function updateClientMetaInfo (appId, options = {}, newInfo) {
20-
const { ssrAttribute } = options
20+
const { ssrAttribute, ssrAppId } = options
2121

2222
// only cache tags for current update
2323
const tags = {}
2424

2525
const htmlTag = getTag(tags, 'html')
2626

2727
// if this is a server render, then dont update
28-
if (appId === 'ssr' && htmlTag.hasAttribute(ssrAttribute)) {
28+
if (appId === ssrAppId && htmlTag.hasAttribute(ssrAttribute)) {
2929
// remove the server render attribute so we can update on (next) changes
3030
htmlTag.removeAttribute(ssrAttribute)
3131
return false

0 commit comments

Comments
 (0)