Closed vonagam closed 11 months ago
Currently props and slots are always passed from server side so no need for default values, they are never applied.
props
slots
There should be no need to delete require.cache because elixir-nodejs does it already on every call.
delete require.cache
elixir-nodejs
Object.fromEntries will always return an object so || {} is not needed after the call.
Object.fromEntries
|| {}
context is already new Map() by default so can be removed from options.
context
new Map()
Great improvement! I remember needing the delete require.cache code before but it seems to work without it now :)
Currently
props
andslots
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
becauseelixir-nodejs
does it already on every call.Object.fromEntries
will always return an object so|| {}
is not needed after the call.context
is alreadynew Map()
by default so can be removed from options.