这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@vonagam
Copy link
Contributor

@vonagam vonagam commented Jul 31, 2023

  • Currently props and slots are always passed from server side so no need for default values, they are never applied.

  • There should be no need to delete require.cache because elixir-nodejs does it already on every call.

  • Object.fromEntries will always return an object so || {} is not needed after the call.

  • context is already new Map() by default so can be removed from options.

@woutdp
Copy link
Owner

woutdp commented Jul 31, 2023

Great improvement! I remember needing the delete require.cache code before but it seems to work without it now :)

@woutdp woutdp merged commit 11adc1a into woutdp:master Jul 31, 2023
@vonagam vonagam deleted the clean-render-function branch July 31, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants