chore: remove options.uid in render() (#15302)

* remove options.uid in render()

* changeset

* chore: update changeset

---------

Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
pull/15314/head
adiGuba 7 months ago committed by GitHub
parent 32b78c9954
commit c40392c1e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
chore: remove unused `options.uid` in `render`

@ -97,11 +97,11 @@ function props_id_generator() {
* 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.
* @template {Record<string, any>} Props
* @param {import('svelte').Component<Props> | ComponentType<SvelteComponent<Props>>} component
* @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>, uid?: () => string }} [options]
* @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any> }} [options]
* @returns {RenderOutput}
*/
export function render(component, options = {}) {
const uid = options.uid ?? props_id_generator();
const uid = props_id_generator();
/** @type {Payload} */
const payload = {
out: '',

Loading…
Cancel
Save