Skip to content

Commit d999749

Browse files
committed
remove options.uid in render()
1 parent 32b78c9 commit d999749

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/internal/server

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ function props_id_generator() {
9797
* Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
9898
* @template {Record<string, any>} Props
9999
* @param {import('svelte').Component<Props> | ComponentType<SvelteComponent<Props>>} component
100-
* @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>, uid?: () => string }} [options]
100+
* @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any> }} [options]
101101
* @returns {RenderOutput}
102102
*/
103103
export function render(component, options = {}) {
104-
const uid = options.uid ?? props_id_generator();
104+
const uid = props_id_generator();
105105
/** @type {Payload} */
106106
const payload = {
107107
out: '',

0 commit comments

Comments
 (0)